XdmType.Document Method (string, string, string, string, bool)XdmType.Document Method (String, String, String, String, Boolean)XdmType::Document Method (String^, String^, String^, String^, bool)
- XmlPrime 2.0
- Other Versions ▼
Creates a reference to the document type with element content with the specified name and type annotation.
Syntax
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.
- elementTypeAnnotationLocalName
Type: System.StringSystem.StringSystem::String^
The local name of the type annotation of the root element of this document type.
- elementTypeAnnotationNamespace
Type: System.StringSystem.StringSystem::String^
The namespace of the type annotation of the root element of this document type.
- nillable
Type: System.BooleanSystem.BooleanSystem::Boolean
A boolean value indicating whether the root element is nillable.
Return Value
Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^
An XdmTypeXdmTypeXdmType instance representing the document type with element content with the specified name and type annotation.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
elementLocalName, elementNamespace,
elementTypeAnnotationLocalName or elementTypeAnnotationNamespace is
null
a null reference (Nothing in Visual Basic)
nullptr .
|
Remarks
This corresponds to the XPath 2.0 typedocument-node(element(elementName, elementTypeAnnotationName))
, or
document-node(element(elementName, elementTypeAnnotationName?))
if nillable is
true
True
true
, where elementName
has local name and namespace specified by
elementLocalName and elementNamespace, and
elementTypeAnnotationName
has local name and namespace specified by
elementTypeAnnotationLocalName and elementTypeAnnotationNamespace
respectively.