XdmType.Document Method (string, string)XdmType.Document Method (String, String)XdmType::Document Method (String^, String^)

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

Syntax

Public Shared Function Document( _
    elementLocalName As String, _
    elementNamespace As String _
) As XdmType
public static XdmType Document(
    string elementLocalName,
    string elementNamespace
)
public:
static XdmType^ Document(
    String^ elementLocalName, 
    String^ elementNamespace
)
 

Parameters

elementLocalName

Type: System.StringSystem.StringSystem::String^

The local name of the root element of this document.

elementNamespace

Type: System.StringSystem.StringSystem::String^

The namespace of the root element of this document.

Return Value

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

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

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException elementLocalName or elementNamespace is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionelementLocalName is not a valid xs:NCName value.

Remarks

This corresponds to the XPath 2.0 type document-node(element(elementName)), where elementName has local name and namespace specified by elementLocalName and elementNamespace respectively.