XdmType.Document Method (XmlQualifiedName)XdmType.Document Method (XmlQualifiedName)XdmType::Document Method (XmlQualifiedName^)

Returns an XdmTypeXdmTypeXdmType instance corresponding to the document type with element content with the specified name.

Syntax

Public Shared Function Document( _
    elementName As System.Xml.XmlQualifiedName _
) As XdmType
public static XdmType Document(
    System.Xml.XmlQualifiedName elementName
)
public:
static XdmType^ Document(
    System.Xml::XmlQualifiedName^ elementName
)
 

Parameters

elementName

Type: System.Xml.XmlQualifiedNameSystem.Xml.XmlQualifiedNameSystem.Xml::XmlQualifiedName^

The name of the root element of this document, or null a null reference (Nothing in Visual Basic) nullptr for a type matching a document with a (single) root element of any name.

Return Value

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

An XdmTypeXdmTypeXdmType instance representing the document type with element content with the specified name.

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentExceptionelementName is not a valid xs:QName value.

Remarks

This corresponds to the XPath 2.0 type document-node(element( )), or document-node(element(*)) if elementName is null a null reference (Nothing in Visual Basic) nullptr.