Constructor UnknownXml
UnknownXml(string, string, UnknownXmlKind)
Initializes an island.
public UnknownXml(string outerXml, string location, UnknownXmlKind kind = UnknownXmlKind.Element)
Parameters
outerXmlstringThe preserved raw XML.
locationstringThe source location, for example "word/document.xml#w:body/w:p/w:pPr".
kindUnknownXmlKindWhy the XML was preserved.
Exceptions
- ArgumentNullException
outerXmlorlocationis null.
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.
public UnknownXml(string outerXml, string location, UnknownXmlKind kind, IEnumerable<string> unmappedAttributes)
Parameters
outerXmlstringThe preserved element's complete raw XML.
locationstringThe source location, for example "word/document.xml#w:pPr/w:ind".
kindUnknownXmlKindWhy the XML was preserved.
unmappedAttributesIEnumerable<string>The qualified names, spelled as in
outerXml(for example "w:startChars"), of the attributes on its outermost element that the reader did not map.
Exceptions
- ArgumentNullException
An argument is null.