Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Returns a read-only XML Document Object Model (DOM) node that contains the <Schema> element.

Script Syntax

Copy Code
var objXMLDOMNode = objXMLDOMSchemaCol.get(
namespaceURI);

Remarks

Script Parameters

namespaceURI

The namespace Uniform Resource Identifier (URI) associated with the schema to return.

This can be any string that can be used in an xmlnsattribute, but it cannot contain entity references. The same white space normalization that occurs on the xmlnsattribute also occurs on this argument (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

Script Return Value

None.

C/C++ Syntax

Copy Code
 [cpp]
HRESULT get(
  BSTR 
namespaceURI,
  IXMLDOMNode** 
schemaNode
);

Remarks

C/C++ Parameters

namespaceURI

[in] The namespace URI associated with the schema to return.

This may be any string that can be used in an xmlnsattribute, but it cannot contain entity references. The same white space normalization that occurs on the xmlnsattribute also occurs on this argument (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

schemaNode

[out, retval] Read-only IXMLDOMNodethat represents the schema that is returned.

C/C++ Return Values

S_OK

Value returned if successful.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This will not necessarily be the same document object provided by the add Method, because the addmethod may have copied the schema. For inline schemas, this will apply directly to the <Schema> node embedded within the document.

This method applies to the following objects and interfaces:

XMLSchemaCache/IXMLDOMSchemaCollection.

See Also

Other Resources