XdmDocument Constructor (string, XmlSpace)XdmDocument Constructor (String, XmlSpace)XdmDocument Constructor (String^, XmlSpace)

Initializes a new instance of the XdmDocumentXdmDocumentXdmDocument class from the XML data in the specified file.

Syntax

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

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionuri 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.