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.
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
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
elementLocalName or elementNamespace is null
a null reference (Nothing in Visual Basic)
nullptr .
|
ArgumentExceptionArgumentExceptionArgumentException | elementLocalName is not a valid xs:NCName value. |
Remarks
This corresponds to the XPath 2.0 typedocument-node(element(elementName))
, where
elementName
has local name and namespace specified by
elementLocalName and elementNamespace respectively.