get Method
Returns a read-only XML Document Object Model (DOM) node that contains the <Schema>
element.
Script Syntax
var objXMLDOMNode = objXMLDOMSchemaCol.get(namespaceURI);
Example
) var oSchemaCache = new ActiveXObject("Msxml2.XMLSchemaCache.5.0"); var nsTarget = ""; oSchemaCache.add(nsTarget, "po.xsd"); var oDOMNode = oSchemaCache.get(nsTarget);
Parameters
- namespaceURI
- The namespace URI associated with the schema to return.
This can be any string that can be used in an
xmlns
attribute, but it cannot contain entity references. The same white space normalization that occurs on thexmlns
attribute 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).
Visual Basic Syntax
Set objXMLDOMNode = objXMLDOMSchemaCol.get(namespaceURI)
Example
Dim oSchemaCache As New XMLSchemaCache50 Dim oDOMNode As DOMDocument50 Dim nsTarget As String nsTarget = "" oSchemaCache.Add nsTarget, "po.xsd" Set oDOMNode = oSchemaCache.get(nsTarget)
Parameters
- namespaceURI
- The namespace URI associated with the schema to return.
This can be any string that can be used in an
xmlns
attribute, but it cannot contain entity references. The same white space normalization that occurs on thexmlns
attribute 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).
C/C++ Syntax
HRESULT get(BSTR namespaceURI, IXMLDOMNode ** schemaNode);
Parameters
- namespaceURI [in]
- The namespace URI associated with the schema to return.
This may be any string that can be used in an
xmlns
attribute, but it cannot contain entity references. The same white space normalization that occurs on thexmlns
attribute 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]
- A read-only
IXMLDOMNode
that represents the schema that is returned.
C/C++ Return Values
- S_OK
- The value returned if successful.
Remarks
This will not necessarily be the same document object provided by the add
method, because the add
method might have copied the schema. For inline schemas, this will apply directly to the <Schema>
node embedded within the document.
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.
See Also
Applies to: IXMLDOMSchemaCollection/XMLSchemaCache