XdmType.Document Method (XmlQualifiedName, XmlSchemaType, bool)XdmType.Document Method (XmlQualifiedName, XmlSchemaType, Boolean)XdmType::Document Method (XmlQualifiedName^, XmlSchemaType^, bool)

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

Syntax

Public Shared Function Document( _
    elementName As System.Xml.XmlQualifiedName, _
    elementTypeAnnotation As System.Xml.Schema.XmlSchemaType, _
    nillable As Boolean _
) As XdmType
public static XdmType Document(
    System.Xml.XmlQualifiedName elementName,
    System.Xml.Schema.XmlSchemaType elementTypeAnnotation,
    bool nillable
)
public:
static XdmType^ Document(
    System.Xml::XmlQualifiedName^ elementName, 
    System.Xml.Schema::XmlSchemaType^ elementTypeAnnotation, 
    bool nillable
)
 

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 root element of any name.

elementTypeAnnotation

Type: System.Xml.Schema.XmlSchemaTypeSystem.Xml.Schema.XmlSchemaTypeSystem.Xml.Schema::XmlSchemaType^

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

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException elementTypeAnnotation is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionelementName is not a valid xs:QName value.

Remarks

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