Table of Contents

Constructor UnknownXml

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

UnknownXml(string, string, UnknownXmlKind)

Initializes an island.

public UnknownXml(string outerXml, string location, UnknownXmlKind kind = UnknownXmlKind.Element)

Parameters

outerXml string

The preserved raw XML.

location string

The source location, for example "word/document.xml#w:body/w:p/w:pPr".

kind UnknownXmlKind

Why the XML was preserved.

Exceptions

ArgumentNullException

outerXml or location is 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

outerXml string

The preserved element's complete raw XML.

location string

The source location, for example "word/document.xml#w:pPr/w:ind".

kind UnknownXmlKind

Why the XML was preserved.

unmappedAttributes IEnumerable<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.