XQuilla/docs/dom3-api/classxercesc_1_1DOMDocumentTraversal.html
2020-02-17 22:24:47 +01:00

260 lines
17 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 DOM3 API Documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.8.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacexercesc.html">xercesc</a></li><li class="navelem"><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html">DOMDocumentTraversal</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="classxercesc_1_1DOMDocumentTraversal-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">xercesc::DOMDocumentTraversal Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p><code><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html" title="DOMDocumentTraversal contains methods that create DOMNodeIterators and DOMTreeWalkers to traverse a n...">DOMDocumentTraversal</a></code> contains methods that create <code>DOMNodeIterators</code> and <code>DOMTreeWalkers</code> to traverse a node and its children in document order (depth first, pre-order traversal, which is equivalent to the order in which the start tags occur in the text representation of the document).
<a href="classxercesc_1_1DOMDocumentTraversal.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="DOMDocumentTraversal_8hpp_source.html">DOMDocumentTraversal.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for xercesc::DOMDocumentTraversal:</div>
<div class="dyncontent">
<div class="center"><img src="classxercesc_1_1DOMDocumentTraversal__inherit__graph.png" border="0" usemap="#xercesc_1_1DOMDocumentTraversal_inherit__map" alt="Inheritance graph"/></div>
<map name="xercesc_1_1DOMDocumentTraversal_inherit__map" id="xercesc_1_1DOMDocumentTraversal_inherit__map">
<area shape="rect" id="node2" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document. " alt="" coords="33,80,199,107"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
<tr class="memitem:aff461a3a7afb61a03a31a860188ace49"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html#aff461a3a7afb61a03a31a860188ace49">~DOMDocumentTraversal</a> ()</td></tr>
<tr class="memdesc:aff461a3a7afb61a03a31a860188ace49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <a href="#aff461a3a7afb61a03a31a860188ace49">More...</a><br/></td></tr>
<tr class="separator:aff461a3a7afb61a03a31a860188ace49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2</div></td></tr>
<tr class="memitem:a0c743e8f8a27422d913f56159cf994a2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNodeIterator.html">DOMNodeIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html#a0c743e8f8a27422d913f56159cf994a2">createNodeIterator</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *root, <a class="el" href="classxercesc_1_1DOMNodeFilter.html#a321889e59b1aa23cd84e980cbb415c0c">DOMNodeFilter::ShowType</a> whatToShow, <a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a> *filter, bool entityReferenceExpansion)=0</td></tr>
<tr class="memdesc:a0c743e8f8a27422d913f56159cf994a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a NodeIterator object. <a href="#a0c743e8f8a27422d913f56159cf994a2">More...</a><br/></td></tr>
<tr class="separator:a0c743e8f8a27422d913f56159cf994a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ba635bd0af7da45008528065003f6a1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html#a8ba635bd0af7da45008528065003f6a1">createTreeWalker</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *root, <a class="el" href="classxercesc_1_1DOMNodeFilter.html#a321889e59b1aa23cd84e980cbb415c0c">DOMNodeFilter::ShowType</a> whatToShow, <a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a> *filter, bool entityReferenceExpansion)=0</td></tr>
<tr class="memdesc:a8ba635bd0af7da45008528065003f6a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a TreeWalker object. <a href="#a8ba635bd0af7da45008528065003f6a1">More...</a><br/></td></tr>
<tr class="separator:a8ba635bd0af7da45008528065003f6a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
<tr class="memitem:a1ba56098f393fc234c4ad5f4e02ece87"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html#a1ba56098f393fc234c4ad5f4e02ece87">DOMDocumentTraversal</a> ()</td></tr>
<tr class="separator:a1ba56098f393fc234c4ad5f4e02ece87"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><code><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html" title="DOMDocumentTraversal contains methods that create DOMNodeIterators and DOMTreeWalkers to traverse a n...">DOMDocumentTraversal</a></code> contains methods that create <code>DOMNodeIterators</code> and <code>DOMTreeWalkers</code> to traverse a node and its children in document order (depth first, pre-order traversal, which is equivalent to the order in which the start tags occur in the text representation of the document). </p>
<p>In DOMs which support the Traversal feature, <code><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html" title="DOMDocumentTraversal contains methods that create DOMNodeIterators and DOMTreeWalkers to traverse a n...">DOMDocumentTraversal</a></code> will be implemented by the same objects that implement the <a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document. ">DOMDocument</a> interface. </p>
<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 class="section since"><dt>Since</dt><dd>DOM Level 2 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1ba56098f393fc234c4ad5f4e02ece87"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">xercesc::DOMDocumentTraversal::DOMDocumentTraversal </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="aff461a3a7afb61a03a31a860188ace49"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual xercesc::DOMDocumentTraversal::~DOMDocumentTraversal </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a0c743e8f8a27422d913f56159cf994a2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNodeIterator.html">DOMNodeIterator</a>* xercesc::DOMDocumentTraversal::createNodeIterator </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *&#160;</td>
<td class="paramname"><em>root</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNodeFilter.html#a321889e59b1aa23cd84e980cbb415c0c">DOMNodeFilter::ShowType</a>&#160;</td>
<td class="paramname"><em>whatToShow</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a> *&#160;</td>
<td class="paramname"><em>filter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>entityReferenceExpansion</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a NodeIterator object. </p>
<p>(DOM2)</p>
<p>NodeIterators are used to step through a set of nodes, e.g. the set of nodes in a NodeList, the document subtree governed by a particular node, the results of a query, or any other set of nodes. The set of nodes to be iterated is determined by the implementation of the NodeIterator. DOM Level 2 specifies a single NodeIterator implementation for document-order traversal of a document subtree. Instances of these iterators are created by calling <code><a class="el" href="classxercesc_1_1DOMDocumentTraversal.html#a0c743e8f8a27422d913f56159cf994a2" title="Creates a NodeIterator object. ">DOMDocumentTraversal.createNodeIterator()</a></code>.</p>
<p>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 expandEntityReferences to true when creating the iterator. 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 expandEntityReferences to false.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">root</td><td>The root node of the DOM tree </td></tr>
<tr><td class="paramname">whatToShow</td><td>This attribute determines which node types are presented via the iterator. </td></tr>
<tr><td class="paramname">filter</td><td>The filter used to screen nodes </td></tr>
<tr><td class="paramname">entityReferenceExpansion</td><td>The value of this flag determines whether the children of entity reference nodes are visible to the iterator. If false, they will be skipped over. </td></tr>
</table>
</dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>DOM Level 2 </dd></dl>
</div>
</div>
<a class="anchor" id="a8ba635bd0af7da45008528065003f6a1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMTreeWalker.html">DOMTreeWalker</a>* xercesc::DOMDocumentTraversal::createTreeWalker </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *&#160;</td>
<td class="paramname"><em>root</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNodeFilter.html#a321889e59b1aa23cd84e980cbb415c0c">DOMNodeFilter::ShowType</a>&#160;</td>
<td class="paramname"><em>whatToShow</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNodeFilter.html">DOMNodeFilter</a> *&#160;</td>
<td class="paramname"><em>filter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>entityReferenceExpansion</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a TreeWalker object. </p>
<p>(DOM2)</p>
<p>TreeWalker objects are used to navigate a document tree or subtree using the view of the document defined by its whatToShow flags and any filters that are defined for the TreeWalker. Any function which performs navigation using a TreeWalker will automatically support any view defined by a TreeWalker.</p>
<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 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 <a class="el" href="classxercesc_1_1DOMText.html" title="The DOMText interface inherits from DOMCharacterData and represents the textual content (termed chara...">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>
<p>To produce a view of the document that has entity references expanded and does not expose the entity reference node itself, use the whatToShow flags to hide the entity reference node and set <code>expandEntityReferences</code> to true when creating the TreeWalker. 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 class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">root</td><td>The root node of the DOM tree </td></tr>
<tr><td class="paramname">whatToShow</td><td>This attribute determines which node types are presented via the tree-walker. </td></tr>
<tr><td class="paramname">filter</td><td>The filter used to screen nodes </td></tr>
<tr><td class="paramname">entityReferenceExpansion</td><td>The value of this flag determines whether the children of entity reference nodes are visible to the tree-walker. If false, they will be skipped over. </td></tr>
</table>
</dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>DOM Level 2 </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="DOMDocumentTraversal_8hpp_source.html">DOMDocumentTraversal.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>