XdmEditableDocument Constructor (string, XmlReader, XmlSpace)XdmEditableDocument Constructor (String, XmlReader, XmlSpace)XdmEditableDocument Constructor (String^, XmlReader^, XmlSpace)

Initializes a new instance of the XdmEditableDocumentXdmEditableDocumentXdmEditableDocument class from the XML data that is contained in the specified XmlReaderXmlReaderXmlReader object with the specified document URI and white space handling.

Syntax

Public Sub New ( _
    uri As String, _
    xmlReader As System.Xml.XmlReader, _
    xmlSpace As System.Xml.XmlSpace _
)
public XdmEditableDocument(
    string uri,
    System.Xml.XmlReader xmlReader,
    System.Xml.XmlSpace xmlSpace
)
public:
XdmEditableDocument(
    String^ uri, 
    System.Xml::XmlReader^ xmlReader, 
    System.Xml::XmlSpace xmlSpace
)
 

Parameters

uri

Type: System.StringSystem.StringSystem::String^

The URI of the document (this overrides the document URI in the XML reader).

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

An XmlSpaceXmlSpaceXmlSpace value.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionxmlReader is null a null reference (Nothing in Visual Basic) nullptr
LicenceExceptionLicenceExceptionLicenceExceptionThis version of XmlPrime has expired.
XmlExceptionXmlExceptionXmlExceptionAn error was encountered in the XML data.

Remarks

The XmlSpaceXmlSpaceXmlSpace value passed as a parameter specifies whether to preserve white space. PreservePreservePreserve preserves all white space. DefaultDefaultDefault preserves only significant white space.