Oracle® XML API Reference 10g Release 1 (10.1) Part Number B10789-01 |
|
|
View PDF |
Table 15-12 summarizes the methods of available through DocumentTraversal interface.
Table 15-12 Summary of DocumentTraversal Methods; Dom Package
Function | Summary |
---|---|
DocumentTraversal |
Constructor. |
createNodeIterator |
Create new NodeIterator object. |
createTreeWalker |
Create new TreeWalker object. |
destroyNodeIterator |
Destroys NodeIterator object. |
destroyTreeWalker |
Destroys TreeWalker object. |
~DocumentTraversal |
Default destructor. |
Constructs the factory.
DocumentTraversal();
(DocumentTraversal)
new factory object
Create new iterator object.
NodeIterator< Node>* createNodeIterator( NodeRef< Node>& root, WhatToShowCode whatToShow, boolean entityReferenceExpansion) throw (DOMException);
Parameter | Description |
---|---|
root |
root of subtree, for iteration |
whatToShow |
node types filter |
entityReferenceExpansion |
if TRUE , expand entity references |
(NodeIterator*)
Pointer to new iterator
Create new TreeWalker
object.
TreeWalker< Node>* createTreeWalker( NodeRef< Node>& root, WhatToShowCode whatToShow, boolean entityReferenceExpansion) throw (DOMException);
Parameter | Description |
---|---|
root |
root of subtree, for traversal |
whatToShow |
node types filter |
entityReferenceExpansion |
if TRUE , expand entity references |
(TreeWalker*)
Pointer to new tree walker
Destroys node iterator object.
void destroyNodeIterator( NodeIterator< Node>* iter) throw (DOMException);
Parameter | Description |
---|---|
iter |
iterator |
Destroys TreeWalker
object.
void destroyTreeWalker( TreeWalker< Node>* walker) throw (DOMException);
Parameter | Description |
---|---|
walker |
TreeWalker |
Default destructor.
~DocumentTraversal();