Skip Headers

Oracle® XML API Reference
10g Release 1 (10.1)

Part Number B10789-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page
Previous
Go to next page
Next
View PDF

TreeWalker Interface

Table 15-27 summarizes the methods of available through TreeWalker interface.

Table 15-27 Summary of TreeWalker Methods; Dom Package

Function Summary
adjustCtx
Attach this tree walker to another context.
firstChild
Get the first child of the current node.
lastChild
Get the last child of the current node.
nextNode
Get the next node.
nextSibling
Get the next sibling node.
parentNode
Get the parent of the current node.
previousNode
Get the previous node.
previousSibling
Get the previous sibling node.


adjustCtx

Attaches this tree walker to the context associated with a given node reference


Syntax
void adjustCtx( 
   NodeRef< Node>& nref);

Parameter Description
nref
reference to provide the context


firstChild

Get the first child of the current node.


Syntax
Node* firstChild();


Returns

(Node*) pointer to first child node


lastChild

Get the last child of the current node.


Syntax
Node* lastChild();


Returns

(Node*) pointer to last child node


nextNode

Get the next node.


Syntax
Node* nextNode();


Returns

(Node*) pointer to the next node


nextSibling

Get the next sibling node.


Syntax
Node* nextSibling();


Returns

(Node*) pointer to the next sibling node


parentNode

Get the parent of the current node.


Syntax
Node* parentNode();


Returns

(Node*) pointer to the parent node


previousNode

Get the previous node.


Syntax
Node* previousNode();


Returns

(Node*) pointer to previous node


previousSibling

Get the previous sibling node.


Syntax
Node* previousSibling();


Returns

(Node*) pointer to the previous sibling node