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

Initializes a new instance of the XdmDocumentXdmDocumentXdmDocument class from the XML data that is contained in the specified StreamStreamStream object.

Syntax

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

Exceptions

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