Partager via


schemas Property (Windows Embedded CE 6.0)

1/6/2010

Finds schema documents during load.

Script Syntax

var objXMLDOMSchemaCollection = objIXMLDOMDocument2.schemas;
objXMLDOMDocument.schemas = objXMLDOMSchemaCollection;

Remarks

Ee502409.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

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

Object. The schema collection that is returned. This is the same object that was previously set, or Null if none has been set.

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

HRESULT get_schemas(
  VARIANT* otherCollection
);
HRESULT putref_schemas(
  VARIANT otherCollection
);

Remarks

Ee502409.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • otherCollection
    [out, retval][in] The schema collection that is returned. This is the same object that was previously set, or Null if none has been set.

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

  • S_OK
    Value returned if the method executes successfully and a schema collection is set.
  • S_FALSE (for get_schemas only)
    Value returned if no schema collection is set.
  • E_POINTER (for get_schemas only)
    Value returned if pSchemaCollection = Null.
  • E_FAIL (for putref_schemas only)
    Value returned if an IXMLSchemaCollection interface cannot be obtained from SchemaCollection with formatted IErrorInfo.

Null if no schema collection is currently set. You will always get the same collection object you put in.

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

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

General Remarks

The schemas property provides a way of associating preloaded schemas with any namespace. It also provides a way to override the schemas that are used by the document you are about to load. Setting a new schema collection has no effect on the current document until the next load or loadXML call. The schemas loaded by the document during load do not automatically get added to this collection.

Setting any non-null schema collection automatically disables document type definition (DTD) processing because you cannot use both DTD and XML schema processing on the same document. This means DTDs will be ignored. Setting the schemas collection to Null re-enables DTD processing.

This property applies to the following objects and interfaces:

XMLSchemaCache/IXMLDOMSchemaCollection, and IXMLDOMDocument2.

See Also

Reference

XML DOM Properties