Oracle® Database XML C++ API Reference 11g Release 1 (11.1) Part Number B28389-01 |
|
|
View PDF |
Table 2-12 summarizes the methods available through DocumentTraversal interface.
Table 2-12 Summary of DocumentTraversal Methods; Dom Package
Function | Summary |
---|---|
|
Constructor. |
|
Create new |
|
Create new |
|
Destroys |
|
Destroys |
|
Default destructor. |
Constructs the factory.
Syntax
DocumentTraversal();
Returns
(DocumentTraversal)
new factory object
Create new iterator object.
Syntax
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 |
Returns
(NodeIterator*)
Pointer to new iterator
Create new TreeWalker
object.
Syntax
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 |
Returns
(TreeWalker*)
Pointer to new tree walker
Destroys node iterator object.
Syntax
void destroyNodeIterator( NodeIterator< Node>* iter) throw (DOMException);
Parameter | Description |
---|---|
iter |
iterator |
Destroys TreeWalker
object.
Syntax
void destroyTreeWalker( TreeWalker< Node>* walker) throw (DOMException);
Parameter | Description |
---|---|
walker |
TreeWalker |
Default destructor.
Syntax
~DocumentTraversal();