Click to return to the XML (Extensible Markup Language) home page    
XMLDOMNode Object     XMLDOMNotation Object     XML XMLDOM Objects    
Web Workshop  |  XML (Extensible Markup Language)

XMLDOMNodeList Object


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

XMLDOMNode



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.