Returns a read-only XML Document Object Model (DOM) node that contains the <Schema>
element.
var objXMLDOMNode = objXMLDOMSchemaCol.get(namespaceURI);
) var oSchemaCache = new ActiveXObject("Msxml2.XMLSchemaCache.5.0"); var nsTarget = ""; oSchemaCache.add(nsTarget, "po.xsd"); var oDOMNode = oSchemaCache.get(nsTarget);
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 the xmlns
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).
Set objXMLDOMNode = objXMLDOMSchemaCol.get(namespaceURI)
Dim oSchemaCache As New XMLSchemaCache50 Dim oDOMNode As DOMDocument50 Dim nsTarget As String nsTarget = "" oSchemaCache.Add nsTarget, "po.xsd" Set oDOMNode = oSchemaCache.get(nsTarget)
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 the xmlns
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).
HRESULT get(BSTR namespaceURI, IXMLDOMNode ** schemaNode);
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 the xmlns
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).
IXMLDOMNode
that represents the schema that is returned.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.
Applies to: IXMLDOMSchemaCollection/XMLSchemaCache