NodeIterator object
Provides an object that can be used to traverse filtered lists of nodes or elements using a flat logical representation of the document structure.
![]() ![]() |
Members
The NodeIterator object has these types of members:
Methods
The NodeIterator object has these methods.
| Method | Description |
|---|---|
| detach |
Removes or detaches an object and associated resources. |
| nextNode |
Returns the next node in the NodeIterator or TreeWalker list and updates currentNode. |
| previousNode |
Returns the previous node in the NodeIterator or TreeWalker list and updates currentNode. |
Properties
The NodeIterator object has these properties.
| Property | Description |
|---|---|
|
Flag to specify whether or not the children of entity reference nodes are visible. | |
|
Gets the function object that the iterator uses to filter nodes that go into TreeWalker hierarchies or NodeIterator lists. | |
|
Gets the root node that was specified when the object was created. | |
|
Gets which node types are presented through the iterator. Nodes that are not accepted are skipped, but their children are still considered. |
Standards information
Remarks
The NodeIterator is dynamic, reflecting the state of the document as it is edited or changed.

