624 lines
36 KiB
HTML
624 lines
36 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>XQilla DOM Level 3 API: xercesc::DOMTreeWalker Class Reference</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.4.6 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul></div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul></div>
|
|
<div class="nav">
|
|
<a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></div>
|
|
<h1>xercesc::DOMTreeWalker Class Reference</h1><!-- doxytag: class="xercesc::DOMTreeWalker" --><code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> objects are used to navigate a document tree or subtree using the view of the document defined by their <code>whatToShow</code> flags and filter (if any).
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="DOMTreeWalker_8hpp-source.html">DOMTreeWalker.hpp</a>></code>
|
|
<p>
|
|
<a href="classxercesc_1_1DOMTreeWalker-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#b51bfebb9e997c8c875f1359f7e5f623">~DOMTreeWalker</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#b51bfebb9e997c8c875f1359f7e5f623"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#6ff1dd3e6d60e113faa36f586c3b3f0f">getRoot</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <code>root</code> node of the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>, as specified when it was created. <a href="#6ff1dd3e6d60e113faa36f586c3b3f0f"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#f76ae006e6c4509c7345f760cf3b1231">getWhatToShow</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">This attribute determines which node types are presented via the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>. <a href="#f76ae006e6c4509c7345f760cf3b1231"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#a333058a8b6fe50292d89c73a96ef39d">getFilter</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return The filter used to screen nodes. <a href="#a333058a8b6fe50292d89c73a96ef39d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#df04b267f85a44f30c6c50fcd282c77e">getExpandEntityReferences</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The value of this flag determines whether the children of entity reference nodes are visible to the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>. <a href="#df04b267f85a44f30c6c50fcd282c77e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#959314e6604b77da68bff9502c1128e6">getCurrentNode</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the node at which the <a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a> is currently positioned. <a href="#959314e6604b77da68bff9502c1128e6"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#6aa32d98ac2f97b52f5933689a487e8e">parentNode</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves to and returns the closest visible ancestor node of the current node. <a href="#6aa32d98ac2f97b52f5933689a487e8e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#6ec15c4ba596a3baf5036d3001c043c4">firstChild</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the first visible child of the current node, and returns the new node. <a href="#6ec15c4ba596a3baf5036d3001c043c4"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#2916c3fce875d739d94e225858efa9ca">lastChild</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the last visible child of the current node, and returns the new node. <a href="#2916c3fce875d739d94e225858efa9ca"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#988198bc41847cf1446261bb05790392">previousSibling</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the previous sibling of the current node, and returns the new node. <a href="#988198bc41847cf1446261bb05790392"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#837454f7d7bca81fcdafc58a0952c269">nextSibling</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the next sibling of the current node, and returns the new node. <a href="#837454f7d7bca81fcdafc58a0952c269"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#55c9855c731c8de61290d5d1b6e0a585">previousNode</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the previous visible node in document order relative to the current node, and returns the new node. <a href="#55c9855c731c8de61290d5d1b6e0a585"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#df667563ce0f68e5273ca737ef94aaa5">nextNode</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the next visible node in document order relative to the current node, and returns the new node. <a href="#df667563ce0f68e5273ca737ef94aaa5"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#03249f5aaed66f853d2d49283a4aff68">setCurrentNode</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *currentNode)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The node at which the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> is currently positioned. <a href="#03249f5aaed66f853d2d49283a4aff68"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Non-standard Extension</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#b7ed6ba1f1167b2d71e80b43943f5296">release</a> ()=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to indicate that this TreeWalker is no longer in use and that the implementation may relinquish any resources associated with it. <a href="#b7ed6ba1f1167b2d71e80b43943f5296"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#172d8748dcc449e359e27af795e37206">DOMTreeWalker</a> ()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMTreeWalker.html#c72aa962a41a6500c3a3b28d348ba4e0">DOMTreeWalker</a> (const <a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a> &)</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> objects are used to navigate a document tree or subtree using the view of the document defined by their <code>whatToShow</code> flags and filter (if any).
|
|
<p>
|
|
Any function which performs navigation using a <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> will automatically support any view defined by a <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>. <p>
|
|
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 <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> view may be children of different, widely separated nodes in the original view. For instance, consider a <code><a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a></code> that skips all nodes except for <a class="el" href="classxercesc_1_1DOMText.html">DOMText</a> 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. <p>
|
|
See also the <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113">Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.<p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
<p>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="172d8748dcc449e359e27af795e37206"></a><!-- doxytag: member="xercesc::DOMTreeWalker::DOMTreeWalker" ref="172d8748dcc449e359e27af795e37206" args="()" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">xercesc::DOMTreeWalker::DOMTreeWalker </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="c72aa962a41a6500c3a3b28d348ba4e0"></a><!-- doxytag: member="xercesc::DOMTreeWalker::DOMTreeWalker" ref="c72aa962a41a6500c3a3b28d348ba4e0" args="(const DOMTreeWalker &)" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">xercesc::DOMTreeWalker::DOMTreeWalker </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const <a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a> & </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="b51bfebb9e997c8c875f1359f7e5f623"></a><!-- doxytag: member="xercesc::DOMTreeWalker::~DOMTreeWalker" ref="b51bfebb9e997c8c875f1359f7e5f623" args="()" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual xercesc::DOMTreeWalker::~DOMTreeWalker </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Destructor.
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="6ec15c4ba596a3baf5036d3001c043c4"></a><!-- doxytag: member="xercesc::DOMTreeWalker::firstChild" ref="6ec15c4ba596a3baf5036d3001c043c4" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::firstChild </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the first visible child of the current node, and returns the new node.
|
|
<p>
|
|
If the current node has no visible children, returns <code>null</code>, and retains the current node. <dl compact><dt><b>Returns:</b></dt><dd>The new node, or <code>null</code> if the current node has no visible children in the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s logical view.</dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="959314e6604b77da68bff9502c1128e6"></a><!-- doxytag: member="xercesc::DOMTreeWalker::getCurrentNode" ref="959314e6604b77da68bff9502c1128e6" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::getCurrentNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Return the node at which the <a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a> is currently positioned.
|
|
<p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="df04b267f85a44f30c6c50fcd282c77e"></a><!-- doxytag: member="xercesc::DOMTreeWalker::getExpandEntityReferences" ref="df04b267f85a44f30c6c50fcd282c77e" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual bool xercesc::DOMTreeWalker::getExpandEntityReferences </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The value of this flag determines whether the children of entity reference nodes are visible to the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>.
|
|
<p>
|
|
If false, these children and their descendants will be rejected. Note that this rejection takes precedence over <code>whatToShow</code> and the filter, if any. <br>
|
|
To produce a view of the document that has entity references expanded and does not expose the entity reference node itself, use the <code>whatToShow</code> flags to hide the entity reference node and set <code>expandEntityReferences</code> to true when creating the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>. To produce a view of the document that has entity reference nodes but no entity expansion, use the <code>whatToShow</code> flags to show the entity reference node and set <code>expandEntityReferences</code> to false.<p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a333058a8b6fe50292d89c73a96ef39d"></a><!-- doxytag: member="xercesc::DOMTreeWalker::getFilter" ref="a333058a8b6fe50292d89c73a96ef39d" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a>* xercesc::DOMTreeWalker::getFilter </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Return The filter used to screen nodes.
|
|
<p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="6ff1dd3e6d60e113faa36f586c3b3f0f"></a><!-- doxytag: member="xercesc::DOMTreeWalker::getRoot" ref="6ff1dd3e6d60e113faa36f586c3b3f0f" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::getRoot </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The <code>root</code> node of the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>, as specified when it was created.
|
|
<p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="f76ae006e6c4509c7345f760cf3b1231"></a><!-- doxytag: member="xercesc::DOMTreeWalker::getWhatToShow" ref="f76ae006e6c4509c7345f760cf3b1231" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual unsigned long xercesc::DOMTreeWalker::getWhatToShow </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
This attribute determines which node types are presented via the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>.
|
|
<p>
|
|
The available set of constants is defined in the <code><a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a></code> interface. Nodes not accepted by <code>whatToShow</code> will be skipped, but their children may still be considered. Note that this skip takes precedence over the filter, if any.<p>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="2916c3fce875d739d94e225858efa9ca"></a><!-- doxytag: member="xercesc::DOMTreeWalker::lastChild" ref="2916c3fce875d739d94e225858efa9ca" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::lastChild </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the last visible child of the current node, and returns the new node.
|
|
<p>
|
|
If the current node has no visible children, returns <code>null</code>, and retains the current node. <dl compact><dt><b>Returns:</b></dt><dd>The new node, or <code>null</code> if the current node has no children in the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s logical view.</dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="df667563ce0f68e5273ca737ef94aaa5"></a><!-- doxytag: member="xercesc::DOMTreeWalker::nextNode" ref="df667563ce0f68e5273ca737ef94aaa5" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::nextNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the next visible node in document order relative to the current node, and returns the new node.
|
|
<p>
|
|
If the current node has no next node, or if the search for nextNode attempts to step upward from the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s <code>root</code> node, returns <code>null</code>, and retains the current node. <dl compact><dt><b>Returns:</b></dt><dd>The new node, or <code>null</code> if the current node has no next node in the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s logical view.</dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="837454f7d7bca81fcdafc58a0952c269"></a><!-- doxytag: member="xercesc::DOMTreeWalker::nextSibling" ref="837454f7d7bca81fcdafc58a0952c269" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::nextSibling </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the next sibling of the current node, and returns the new node.
|
|
<p>
|
|
If the current node has no visible next sibling, returns <code>null</code>, and retains the current node. <dl compact><dt><b>Returns:</b></dt><dd>The new node, or <code>null</code> if the current node has no next sibling. in the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s logical view.</dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="6aa32d98ac2f97b52f5933689a487e8e"></a><!-- doxytag: member="xercesc::DOMTreeWalker::parentNode" ref="6aa32d98ac2f97b52f5933689a487e8e" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::parentNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Moves to and returns the closest visible ancestor node of the current node.
|
|
<p>
|
|
If the search for <code>parentNode</code> attempts to step upward from the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s <code>root</code> node, or if it fails to find a visible ancestor node, this method retains the current position and returns <code>null</code>. <dl compact><dt><b>Returns:</b></dt><dd>The new parent node, or <code>null</code> if the current node has no parent in the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s logical view.</dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="55c9855c731c8de61290d5d1b6e0a585"></a><!-- doxytag: member="xercesc::DOMTreeWalker::previousNode" ref="55c9855c731c8de61290d5d1b6e0a585" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::previousNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the previous visible node in document order relative to the current node, and returns the new node.
|
|
<p>
|
|
If the current node has no previous node, or if the search for <code>previousNode</code> attempts to step upward from the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s <code>root</code> node, returns <code>null</code>, and retains the current node. <dl compact><dt><b>Returns:</b></dt><dd>The new node, or <code>null</code> if the current node has no previous node in the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s logical view.</dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="988198bc41847cf1446261bb05790392"></a><!-- doxytag: member="xercesc::DOMTreeWalker::previousSibling" ref="988198bc41847cf1446261bb05790392" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMTreeWalker::previousSibling </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Moves the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> to the previous sibling of the current node, and returns the new node.
|
|
<p>
|
|
If the current node has no visible previous sibling, returns <code>null</code>, and retains the current node. <dl compact><dt><b>Returns:</b></dt><dd>The new node, or <code>null</code> if the current node has no previous sibling. in the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s logical view.</dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="b7ed6ba1f1167b2d71e80b43943f5296"></a><!-- doxytag: member="xercesc::DOMTreeWalker::release" ref="b7ed6ba1f1167b2d71e80b43943f5296" args="()=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMTreeWalker::release </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Called to indicate that this TreeWalker is no longer in use and that the implementation may relinquish any resources associated with it.
|
|
<p>
|
|
Access to a released object will lead to unexpected result. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="03249f5aaed66f853d2d49283a4aff68"></a><!-- doxytag: member="xercesc::DOMTreeWalker::setCurrentNode" ref="03249f5aaed66f853d2d49283a4aff68" args="(DOMNode *currentNode)=0" --><p>
|
|
<table class="mdTable" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual void xercesc::DOMTreeWalker::setCurrentNode </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>currentNode</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The node at which the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code> is currently positioned.
|
|
<p>
|
|
<br>
|
|
Alterations to the DOM tree may cause the current node to no longer be accepted by the <code><a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a></code>'s associated filter. <code>currentNode</code> may also be explicitly set to any node, whether or not it is within the subtree specified by the <code>root</code> node or would be accepted by the filter and <code>whatToShow</code> flags. Further traversal occurs relative to <code>currentNode</code> even if it is not part of the current view, by applying the filters in the requested direction; if no traversal is possible, <code>currentNode</code> is not changed. <dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NOT_SUPPORTED_ERR: Raised if an attempt is made to set <code>currentNode</code> to <code>null</code>.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="DOMTreeWalker_8hpp-source.html">DOMTreeWalker.hpp</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:19:02 2006 for XQilla DOM Level 3 API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
|
|
</body>
|
|
</html>
|