次の方法で共有


get Method (Windows Embedded CE 6.0)

1/6/2010

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

Script Syntax

var objXMLDOMNode = objXMLDOMSchemaCol.get(namespaceURI);

Remarks

Ee502655.collapse(en-US,WinEmbedded.60).gifScript 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 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).

Ee502655.collapse(en-US,WinEmbedded.60).gifScript Return Value

None.

Ee502655.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get(
  BSTR namespaceURI,
  IXMLDOMNode** schemaNode
);

Remarks

Ee502655.collapse(en-US,WinEmbedded.60).gifC/C++ 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 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).

  • schemaNode
    [out, retval] Read-only IXMLDOMNode that represents the schema that is returned.

Ee502655.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.

Ee502655.collapse(en-US,WinEmbedded.60).gifRequirements

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 add method 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

Reference

XML DOM Methods

Other Resources