XdmDocument Constructor (XmlReader, XmlSpace, bool)XdmDocument Constructor (XmlReader, XmlSpace, Boolean)XdmDocument Constructor (XmlReader^, XmlSpace, bool)
- XmlPrime 4.1
- Other Versions ▼
Initializes a new instance of the XdmDocumentXdmDocumentXdmDocument class from the XML data that is contained in
the specified XmlReaderXmlReaderXmlReader object with the specified white space handling.
Syntax
Public Sub New ( _ xmlReader As System.Xml.XmlReader, _ xmlSpace As System.Xml.XmlSpace, _ preseveLineInfo As Boolean _ )
public XdmDocument( System.Xml.XmlReader xmlReader, System.Xml.XmlSpace xmlSpace, bool preseveLineInfo )
public: XdmDocument( System.Xml::XmlReader^ xmlReader, System.Xml::XmlSpace xmlSpace, bool preseveLineInfo )
Parameters
- xmlReader
Type: System.Xml.XmlReaderSystem.Xml.XmlReaderSystem.Xml::XmlReader^
The XmlReaderXmlReaderXmlReader from which to read the document.
- xmlSpace
Type: System.Xml.XmlSpaceSystem.Xml.XmlSpaceSystem.Xml::XmlSpace
- preseveLineInfo
Type: System.BooleanSystem.BooleanSystem::Boolean
If set to
true
True
true
preserves line number information, if available from the xmlReader; otherwisefalse
False
false
.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | xmlReader is null
a null reference (Nothing in Visual Basic)
nullptr |
LicenceExceptionLicenceExceptionLicenceException | This version of XmlPrime has expired. |
XmlExceptionXmlExceptionXmlException | An error was encountered in the XML data. |