Share via


IXMLDOMDocument2

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Methods

The following table shows the methods for IXMLDOMDocument2.

Method Description

getProperty

Identifies default values or values set by setProperty.

selectNodes

Changes select nodes to return an IXMLDOMSelection object.

setProperty

Mechanism for setting properties.

validate

Performs run-time validation on the currently loaded XML document.

Properties

The following table shows the properties for IXMLDOMDocument2.

Property Description

namespaces

Returns the list of namespaces in the document.

schemas

Uses the XMLSchemaCache/IXMLDOMSchemaCollection to find schema documents.

Events

None.

Remarks

The following CLSID supports IID_XMLDOMDocument2 in CoCreateInstance. The following progID returns an object that can be cast into an IXMLDOMDocument2 interface. 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.

CLSID ProgID

CLSID_DOMDocument

Msxml2.DOMDocument

This interface inherits all of the methods, properties, and events of DOMDocument.

Requirements

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

See Also

Reference

DOMDocument