Microsoft XML SDK 2.6 - XML Reference

schemas Property

Used for finding schema documents during load.

Set objXMLDOMDocument.schemas = objXMLDOMSchemaCache

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 DTD processing because you cannot mix 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.

See Also

XMLSchemaCache Object

Applies To: XMLDOMDocument2 Object