DOM_TreeWalker
objects are used to navigate a document tree or subtree using the view of the document defined by itswhatToShow
flags and any filters that are defined for theDOM_TreeWalker
![]() | Constructors and assignment operator
| ||||||||||||||||||||||
![]() | Destructor.
| ||||||||||||||||||||||
![]() | Detaching functions.
| ||||||||||||||||||||||
![]() | Equality and Inequality operators.
| ||||||||||||||||||||||
![]() | Get functions.
| ||||||||||||||||||||||
![]() | Set functions.
|
DOM_TreeWalker
objects are used to navigate a document tree or subtree using the view of the document defined by itswhatToShow
flags and any filters that are defined for theDOM_TreeWalker
. Any function which performs navigation using aDOM_TreeWalker
will automatically support any view defined by aDOM_TreeWalker
. Omitting nodes from the logical view of a subtree can result in a structure that is substantially different from the same subtree in the complete, unfiltered document. Nodes that are siblings in the DOM_TreeWalker view may be children of different, widely separated nodes in the original view. For instance, consider a Filter that skips all nodes except for Text nodes and the root node of a document. In the logical view that results, all text nodes will be siblings and appear as direct children of the root node, no matter how deeply nested the structure of the original document."Experimental - subject to change"
DOM_TreeWalker(const DOM_TreeWalker &other)
DOM_TreeWalker& operator = (const DOM_TreeWalker &other)
DOM_TreeWalker& operator = (const DOM_NullPtr *val)
DOM_TreeWalker
s refer to the same
actual node, or are both null; return false otherwise.
this
object is compared
bool operator == (const DOM_NullPtr *other) const
bool operator != (const DOM_TreeWalker & other) const
bool operator != (const DOM_NullPtr * other) const
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change"
"Experimental - subject to change" DOM_NodeFilter* getFilter()
bool getExpandEntityReferences()
DOM_Node getCurrentNode()
DOM_Node parentNode()
DOM_Node firstChild()
DOM_TreeWalker
to the first child of the current node,
and returns the new node. If the current node has no children, returns
null
, and retains the current node.
DOM_Node lastChild()
DOM_TreeWalker
to the last child of the current node, and
returns the new node. If the current node has no children, returns
null
, and retains the current node.
DOM_Node previousSibling()
DOM_TreeWalker
to the previous sibling of the current
node, and returns the new node. If the current node has no previous sibling,
returns null
, and retains the current node.
DOM_Node nextSibling()
DOM_TreeWalker
to the next sibling of the current node,
and returns the new node. If the current node has no next sibling, returns
null
, and retains the current node.
DOM_Node previousNode()
DOM_TreeWalker
to the previous visible node in document
order relative to the current node, and returns the new node. If the current
node has no previous node,
or if the search for previousNode attempts to step upward from the DOM_TreeWalker's
root node, returns null
, and retains the current node.
DOM_Node nextNode()
DOM_TreeWalker
to the next visible node in document order
relative to the current node, and returns the new node. If the current node has
no next node,
or if the search for nextNode attempts to step upward from the DOM_TreeWalker's
root node, returns null
, and retains the current node.
"Experimental - subject to change"
detach
has been invoked, calls to nextNode
or
previousNode
will raise the exception INVALID_STATE_ERR.
"Experimental - subject to change"
alphabetic index hierarchy of classes
Xerces-C XML Parser for C++ Version 1.1 |
|
generated by doc++