Table 2-19 summarizes the methods available through NodeIterator interface.
Table 2-19 Summary of NodeIterator Methods; Dom Package
| Function | Summary |
|---|---|
|
Attach this iterator to the another context. |
|
|
Invalidate the iterator. |
|
|
Go to the next node. |
|
|
Go to the previous node. |
Attaches this iterator to the context associated with a given node reference
void adjustCtx( NodeRef< Node>& nref);
| Parameter | Description |
|---|---|
nref |
reference node |
Invalidates the iterator.
void detach();
Go to the next node.
Node* nextNode() throw (DOMException);
(Node*) pointer to the next node
Go to the previous node.
Node* previousNode() throw (DOMException);
(Node*) pointer to the previous node