Table 15-19 summarizes the methods of available through NodeIterator interface.
Table 15-19 Summary of NodeIterator Methods; Dom Package
Function | Summary |
---|---|
adjustCtx
|
Attach this iterator to the another context. |
detach
|
Invalidate the iterator. |
nextNode
|
Go to the next node. |
previousNode
|
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