Partager via


schemas Property

Finds schema documents during load.

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

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

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.

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.