Freigeben über


IXMLDOMDocument2 (Compact 2013)

3/26/2014

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

See Also

Reference

XML DOM Objects/Interfaces
DOMDocument