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

Creates a reference to the document type with schema element content with the specified name.

Syntax

Public Shared Function SchemaDocument( _
    elementLocalName As String, _
    elementNamespace As String _
) As XdmType
public static XdmType SchemaDocument(
    string elementLocalName,
    string elementNamespace
)
public:
static XdmType^ SchemaDocument(
    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 schema element content with the specified name.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException elementLocalName or elementNamespace is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

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