Class UnknownXml
An opaque island of source XML preserved for lossless round-trip. Islands attach to the nearest model object that hosted the unparsed markup; nothing encountered during parsing is silently discarded.
public sealed class UnknownXml
- Inheritance
-
UnknownXml
- Inherited Members
Constructors
- UnknownXml(string, string, UnknownXmlKind)
Initializes an island.
- UnknownXml(string, string, UnknownXmlKind, IEnumerable<string>)
Initializes an UnmappedAttributes island that names the attributes the reader did not map, so a writer can put exactly those back on the element it writes from the model.
Properties
- Kind
Gets the reason the XML was preserved.
- Location
Gets the source location (part name and element path, no indices).
- OuterXml
Gets the preserved raw XML.
- UnmappedAttributes
Gets the qualified names, spelled as in OuterXml, of the attributes the reader did not map, in document order. Empty when the island does not name them (an Element island, or one built without the list).
Methods
- Clone()
Returns a copy of this island (islands are immutable, so this returns the same data).