An extension of IXMLDOMDocument that supports schema caching and validation features as well as a way to switch on XPath support.
getProperty | Gets the default values or values set by setProperty. |
namespaces | Returns the list of namespaces used in the document as an XMLSchemaCache object. |
schemas | Identifies the XMLSchemaCache object to use during load. |
selectNodes | Changes select nodes to return an object that supports the IXMLDOMSelection interface via QueryInterface. |
setProperty | Generic mechanism for setting properties. |
validate | Performs run-time validation on the currently loaded XML document. |
The following CLSIDs support IID_XMLDOMDocument2 in CoCreateInstance. The following ProgROGIDs return an object that can be cast into an IXMLDOMDocument2 interface in 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 via the IXMLHttpTTPRequest::get_responseXML property and the DOMXMLDocument and XSLDocument properties in the XML Mime Viewer.
CLSID | ProgID |
---|---|
CLSID_DOMDocument | MicrosoftMSXML2.XMLDOMDocument |
CLSID_DOMFreeThreadedDocument | MicrosoftMSXML2.FreeThreadedXMLDOMDocument |
Implementation: Msxml2.dll
Header and IDL files: Msxml.h, Xmldom.idl
Version-Independent ProgID: Msxml2.DOMDocument, Msxml2.FreeThreadedDOMDocument
Version-Independent CLSID: f6d90f11-9c73-11d3-b32e-00c04f990bb4, f6d90f12-9c73-11d3-b32e-00c04f990bb4 (free-threaded)
Version-Dependent ProgID: Msxml2.DOMDocument.2.6, Msxml2FreeThreadedDOMDocument.2.6
Version-Dependent CSLID: f5078f1b-c551-11d3-89b9-0000f81fe221, f5078f1c-c551-11d3-89b9-0000f81fe221 (free-threaded)