Easy Tutorial
❮ Prop Document Xmlversion Dom Met Node Appendchild ❯

XML DOM - NodeList Object


The NodeList object represents an ordered list of nodes.


NodeList Object

Nodes in the node list can be accessed by their corresponding index number (starting from 0).

The node list can maintain its own updates. If an element in the node list or XML document is deleted or added, the list is automatically updated.

Note: The order in which nodes are returned in a node list is the same as they are specified in the XML document.

NodeList Object Properties

Property Description
length Returns the number of nodes in the node list.

NodeList Object Methods

Method Description
item() Returns the node at the specified index in the node list.
❮ Prop Document Xmlversion Dom Met Node Appendchild ❯