Share via


IXMLDOMNodeList (Compact 2013)

3/26/2014

Supports iteration through the live collection, in addition to indexed access.

Methods

The following table shows the methods for IXMLDOMNodeList.

This interface inherits from IDispatch.

Method

Description

item

Allows random access to individual nodes within the collection.

nextNode*

Returns the next node in the collection.

reset*

Resets the iterator.

* denotes an extension to the World Wide Web Consortium (W3C) Document Object Model (DOM).

Properties

The following table shows the properties for IXMLDOMNodeList.

This interface inherits from IDispatch.

Property

Description

length

Indicates the number of items in the collection. Read-only.

Events

None.

Remarks

A NodeList collection is live; that is, the addition and removal of nodes, and changes within nodes, are immediately reflected in the collection. This means that two successive requests for items using the same index can return two different items, depending on changes to the collection. This also means that changes to the node objects are immediately available in the nodes obtained from the list. The collection can also be accessed using the "for...next" construct.

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Objects/Interfaces
IXMLDOMNode