Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMNode Interface     IXMLDOMNotation Interface     XML DOM Interfaces    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMNodeList Interface


The XMLDOMNodeList object supports iteration through the live collection, in addition to indexed access.

IXMLDOMNodeList Methods

item Allows random access to individual nodes within the collection.
length Indicates the number of items in the collection.
nextNode Returns the next node in the collection.
reset Resets the iterator.

Remarks

A node list 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.

Interface Information

Implementation Msxml.dll
Inherits from IDispatch
Header and IDL files Msxml.h, Xmldom.idl
Minimum availability Internet Explorer 5
Minimum operating systems Windows 95, Windows NT


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.