The XMLDOMNodeList object supports iteration through the live collection, in addition to indexed access.
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.
Members
Example
The following example creates an XMLDOMNodeList object by using the document's getElementsByTagName method:
Dim xmlDoc Dim objNodeList Set xmlDoc = CreateObject("microsoft.xmldom") xmlDoc.load("c:\xmlinact\books.xml") Set objNodeList = xmlDoc.getElementsByTagName("AUTHOR")
See Also