IXMLDOMDocument2

 

Description

 

An extension of DOMDocument that supports schema caching and validation features, and switching on XML Path Language (XPath) support.

 

Remarks

 

The following CLSIDs support IID_XMLDOMDocument2 in CoCreateInstance. The following progIDs return an object that can be cast into an IXMLDOMDocument2 interface in Microsoft Visual Basic. IXMLDOMDocument2 methods and properties are transparently available in late-bound scripting languages that go through IDispatch.

 

The same is true for DOMDocument objects exposed through the responseXML(IXMLHTTPRequest) property, and the DOMDocument and XSLDocument properties in the XML Multipurpose Internet Mail Extension (MIME) Viewer.

 

CLSID

ProgID

CLSID_DOMDocument

Msxml2.DOMDocument

CLSID_DOMFreeThreadedDocument

Msxml2.FreeThreadedDOMDocument

 

Versioning

 

Implemented in: MSXML 2.6 and later

 

IXMLDOMDocument2 Members

 

The following tables show the properties, methods, and events.

 

In C++, this interface inherits from DOMDocument.

 

The methods and properties in this table are an extension to the World Wide Web Consortium (W3C) DOM.

 

Properties

 

namespaces

Returns the list of namespaces in the document as XMLSchemaCache.

schemas

Finds schema documents during load.

 

Methods

 

getProperty

Returns the current setting (or default) for second-level properties.

setProperty

Used for setting second-level properties.

validate

Performs run-time validation on the currently loaded document using the currently loaded document type definition (DTD), schema, or schema collection.

 

Events

 

None.

 

Valid XHTML 1.0 Transitional