XQuilla/docs/dom3-api/classxercesc_1_1DOMXPathResult.html
2020-02-17 22:17:06 +01:00

581 lines
39 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.5.5 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="classes.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 class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1DOMXPathResult.html">DOMXPathResult</a>
</div>
</div>
<div class="contents">
<h1>xercesc::DOMXPathResult Class Reference</h1><!-- doxytag: class="xercesc::DOMXPathResult" -->The <code><a class="el" href="classxercesc_1_1DOMXPathResult.html" title="The DOMXPathResult interface represents the result of the evaluation of an XPath...">DOMXPathResult</a></code> interface represents the result of the evaluation of an XPath 1.0 or XPath 2.0 expression within the context of a particular node.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="DOMXPathResult_8hpp-source.html">DOMXPathResult.hpp</a>&gt;</code>
<p>
<p>
<a href="classxercesc_1_1DOMXPathResult-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 Types</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Public Contants</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300">ResultType</a> { <br>
&nbsp;&nbsp;<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300b6fc18ec7cdcbc2e0a19fc2e412a3cb0">ANY_TYPE</a> = 0,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc30095277a2f32e0d3d65e19d4d2874e57c0">NUMBER_TYPE</a> = 1,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc30065b6f1dc2c92ed87e682e83b5c287b4f">STRING_TYPE</a> = 2,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300a8648b7920a771d00c8cc2f1c5f8fb1f">BOOLEAN_TYPE</a> = 3,
<br>
&nbsp;&nbsp;<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc3001097beaa1a15b56caf3bb211359ea308">UNORDERED_NODE_ITERATOR_TYPE</a> = 4,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300a21cad088d12984672f859643d84e0bd">ORDERED_NODE_ITERATOR_TYPE</a> = 5,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300d6bc2afd0d37b33ab8086ca48111bb71">UNORDERED_NODE_SNAPSHOT_TYPE</a> = 6,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc3004046a5b89b1293c03e02a7c889ccde17">ORDERED_NODE_SNAPSHOT_TYPE</a> = 7,
<br>
&nbsp;&nbsp;<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc30009a91bfc868e07e24171ffee7cd446c2">ANY_UNORDERED_NODE_TYPE</a> = 8,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300832c2b62b22eab949c098fd20c92fb78">FIRST_ORDERED_NODE_TYPE</a> = 9,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc3000e3b61f724b8a88e2f039919edc572ce">FIRST_RESULT_TYPE</a> = 100,
<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300b6d5d71225325c750b37db404b936541">ITERATOR_RESULT_TYPE</a> = 101,
<br>
&nbsp;&nbsp;<a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc3005fbe645481c1c999ad20f455ba71659f">SNAPSHOT_RESULT_TYPE</a> = 102
<br>
}</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#42f4681378ebc025e616c985675c05bc">~DOMXPathResult</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <a href="#42f4681378ebc025e616c985675c05bc"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 3</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300">ResultType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#af406f00c1248cd1dd1cee8a3cfb141e">getResultType</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the result type of this result. <a href="#af406f00c1248cd1dd1cee8a3cfb141e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classxercesc_1_1DOMTypeInfo.html">DOMTypeInfo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#c85f382c8f542422b6b61fdaa444cc23">getTypeInfo</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the DOM type info of the current result node or value (XPath 2 only). <a href="#c85f382c8f542422b6b61fdaa444cc23"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#497157e657f5ad1dc061c3a6c0c5422e">isNode</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the result has a current result and the value is a node (XPath 2 only). <a href="#497157e657f5ad1dc061c3a6c0c5422e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#8ddc30c8ae198ae01988a183d5f10f99">getBooleanValue</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the boolean value of this result. <a href="#8ddc30c8ae198ae01988a183d5f10f99"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#ce548a9d7461518a2fa31281ae3d36b2">getIntegerValue</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the integer value of this result (XPath 2 only). <a href="#ce548a9d7461518a2fa31281ae3d36b2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#e101f415cd2160e4eb53896fdd9c6b02">getNumberValue</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number value of this result. <a href="#e101f415cd2160e4eb53896fdd9c6b02"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#826fa65e2e6d9538212a471ac5f389a4">getStringValue</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the string value of this result. <a href="#826fa65e2e6d9538212a471ac5f389a4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#a0be471c8082f9a7fa16407252b6dd6a">getNodeValue</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the node value of this result. <a href="#a0be471c8082f9a7fa16407252b6dd6a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#d8d5bb4d625bd09e859bd6c98cb9a7f4">iterateNext</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Iterates and returns true if the current result is the next item from the sequence or false if there are no more items. <a href="#d8d5bb4d625bd09e859bd6c98cb9a7f4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#cff93a8e921545526ffa38ac55935923">getInvalidIteratorState</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signifies that the iterator has become invalid. <a href="#cff93a8e921545526ffa38ac55935923"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#6b28fc14ff3219225b2c193617095c60">snapshotItem</a> (XMLSize_t index)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the current result to the indexth item in the snapshot collection. <a href="#6b28fc14ff3219225b2c193617095c60"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual XMLSize_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#aadb0155f0a703bc4b84f6805c1dc40a">getSnapshotLength</a> () const =0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The number of items in the result snapshot. <a href="#aadb0155f0a703bc4b84f6805c1dc40a"></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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#014c64924252670294628b75da5f77ad">release</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called to indicate that this <a class="el" href="classxercesc_1_1DOMXPathResult.html" title="The DOMXPathResult interface represents the result of the evaluation of an XPath...">DOMXPathResult</a> is no longer in use and that the implementation may relinquish any resources associated with it. <a href="#014c64924252670294628b75da5f77ad"></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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMXPathResult.html#983bbfe3c55811f5f2a33908c4db8f2d">DOMXPathResult</a> ()</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <code><a class="el" href="classxercesc_1_1DOMXPathResult.html" title="The DOMXPathResult interface represents the result of the evaluation of an XPath...">DOMXPathResult</a></code> interface represents the result of the evaluation of an XPath 1.0 or XPath 2.0 expression within the context of a particular node.
<p>
Since evaluation of an XPath expression can result in various result types, this object makes it possible to discover and manipulate the type and value of the result.<p>
Note that some function signatures were changed compared to the DOM Level 3 in order to accommodate XPath 2.0.<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="c318dc8281097f1850dce6113b1fc300"></a><!-- doxytag: member="xercesc::DOMXPathResult::ResultType" ref="c318dc8281097f1850dce6113b1fc300" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300">xercesc::DOMXPathResult::ResultType</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
ANY_TYPE <br>
[XPath 1.0] This code does not represent a specific type. An evaluation of an XPath expression will never produce this type. If this type is requested, then the evaluation returns whatever type naturally results from evaluation of the expression. If the natural result is a node set when ANY_TYPE was requested, then UNORDERED_NODE_ITERATOR_TYPE is always the resulting type. Any other representation of a node set must be explicitly requested. <p>
ANY_UNORDERED_NODE_TYPE <br>
[XPath 1.0] The result is a node set as defined by XPath 1.0 and will be accessed as a single node, which may be null if the node set is empty. Document modification does not invalidate the node, but may mean that the result node no longer corresponds to the current document. This is a convenience that permits optimization since the implementation can stop once any node in the resulting set has been found. If there is more than one node in the actual result, the single node returned might not be the first in document order. <p>
BOOLEAN_TYPE <br>
[XPath 1.0] The result is a boolean as defined by XPath 1.0. Document modification does not invalidate the boolean, but may mean that reevaluation would not yield the same boolean. <p>
FIRST_ORDERED_NODE_TYPE <br>
[XPath 1.0] The result is a node set as defined by XPath 1.0 and will be accessed as a single node, which may be null if the node set is empty. Document modification does not invalidate the node, but may mean that the result node no longer corresponds to the current document. This is a convenience that permits optimization since the implementation can stop once the first node in document order of the resulting set has been found. If there are more than one node in the actual result, the single node returned will be the first in document order. <p>
NUMBER_TYPE <br>
[XPath 1.0] The result is a number as defined by XPath 1.0. Document modification does not invalidate the number, but may mean that reevaluation would not yield the same number. <p>
ORDERED_NODE_ITERATOR_TYPE <br>
[XPath 1.0] The result is a node set as defined by XPath 1.0 that will be accessed iteratively, which will produce document-ordered nodes. Document modification invalidates the iteration. <p>
ORDERED_NODE_SNAPSHOT_TYPE <br>
[XPath 1.0] The result is a node set as defined by XPath 1.0 that will be accessed as a snapshot list of nodes that will be in original document order. Document modification does not invalidate the snapshot but may mean that reevaluation would not yield the same snapshot and nodes in the snapshot may have been altered, moved, or removed from the document. <p>
STRING_TYPE <br>
[XPath 1.0] The result is a string as defined by XPath 1.0. Document modification does not invalidate the string, but may mean that the string no longer corresponds to the current document. <p>
UNORDERED_NODE_ITERATOR_TYPE <br>
[XPath 1.0] The result is a node set as defined by XPath 1.0 that will be accessed iteratively, which may not produce nodes in a particular order. Document modification invalidates the iteration. This is the default type returned if the result is a node set and ANY_TYPE is requested. <p>
UNORDERED_NODE_SNAPSHOT_TYPE <br>
[XPath 1.0] The result is a node set as defined by XPath 1.0 that will be accessed as a snapshot list of nodes that may not be in a particular order. Document modification does not invalidate the snapshot but may mean that reevaluation would not yield the same snapshot and nodes in the snapshot may have been altered, moved, or removed from the document. <p>
FIRST_RESULT_TYPE <br>
[XPath 2.0] The result is a sequence as defined by XPath 2.0 and will be accessed as a single current value or there will be no current value if the sequence is empty. Document modification does not invalidate the value, but may mean that the result no longer corresponds to the current document. This is a convenience that permits optimization since the implementation can stop once the first item in the resulting sequence has been found. If there is more than one item in the actual result, the single item returned might not be the first in document order. <p>
ITERATOR_RESULT_TYPE <br>
[XPath 2.0] The result is a sequence as defined by XPath 2.0 that will be accessed iteratively. Document modification invalidates the iteration. <p>
SNAPSHOT_RESULT_TYPE <br>
[XPath 2.0] The result is a sequence as defined by XPath 2.0 that will be accessed as a snapshot list of values. Document modification does not invalidate the snapshot but may mean that reevaluation would not yield the same snapshot and any items in the snapshot may have been altered, moved, or removed from the document. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc300b6fc18ec7cdcbc2e0a19fc2e412a3cb0"></a><!-- doxytag: member="ANY_TYPE" ref="c318dc8281097f1850dce6113b1fc300b6fc18ec7cdcbc2e0a19fc2e412a3cb0" args="" -->ANY_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc30095277a2f32e0d3d65e19d4d2874e57c0"></a><!-- doxytag: member="NUMBER_TYPE" ref="c318dc8281097f1850dce6113b1fc30095277a2f32e0d3d65e19d4d2874e57c0" args="" -->NUMBER_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc30065b6f1dc2c92ed87e682e83b5c287b4f"></a><!-- doxytag: member="STRING_TYPE" ref="c318dc8281097f1850dce6113b1fc30065b6f1dc2c92ed87e682e83b5c287b4f" args="" -->STRING_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc300a8648b7920a771d00c8cc2f1c5f8fb1f"></a><!-- doxytag: member="BOOLEAN_TYPE" ref="c318dc8281097f1850dce6113b1fc300a8648b7920a771d00c8cc2f1c5f8fb1f" args="" -->BOOLEAN_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc3001097beaa1a15b56caf3bb211359ea308"></a><!-- doxytag: member="UNORDERED_NODE_ITERATOR_TYPE" ref="c318dc8281097f1850dce6113b1fc3001097beaa1a15b56caf3bb211359ea308" args="" -->UNORDERED_NODE_ITERATOR_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc300a21cad088d12984672f859643d84e0bd"></a><!-- doxytag: member="ORDERED_NODE_ITERATOR_TYPE" ref="c318dc8281097f1850dce6113b1fc300a21cad088d12984672f859643d84e0bd" args="" -->ORDERED_NODE_ITERATOR_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc300d6bc2afd0d37b33ab8086ca48111bb71"></a><!-- doxytag: member="UNORDERED_NODE_SNAPSHOT_TYPE" ref="c318dc8281097f1850dce6113b1fc300d6bc2afd0d37b33ab8086ca48111bb71" args="" -->UNORDERED_NODE_SNAPSHOT_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc3004046a5b89b1293c03e02a7c889ccde17"></a><!-- doxytag: member="ORDERED_NODE_SNAPSHOT_TYPE" ref="c318dc8281097f1850dce6113b1fc3004046a5b89b1293c03e02a7c889ccde17" args="" -->ORDERED_NODE_SNAPSHOT_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc30009a91bfc868e07e24171ffee7cd446c2"></a><!-- doxytag: member="ANY_UNORDERED_NODE_TYPE" ref="c318dc8281097f1850dce6113b1fc30009a91bfc868e07e24171ffee7cd446c2" args="" -->ANY_UNORDERED_NODE_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc300832c2b62b22eab949c098fd20c92fb78"></a><!-- doxytag: member="FIRST_ORDERED_NODE_TYPE" ref="c318dc8281097f1850dce6113b1fc300832c2b62b22eab949c098fd20c92fb78" args="" -->FIRST_ORDERED_NODE_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc3000e3b61f724b8a88e2f039919edc572ce"></a><!-- doxytag: member="FIRST_RESULT_TYPE" ref="c318dc8281097f1850dce6113b1fc3000e3b61f724b8a88e2f039919edc572ce" args="" -->FIRST_RESULT_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc300b6d5d71225325c750b37db404b936541"></a><!-- doxytag: member="ITERATOR_RESULT_TYPE" ref="c318dc8281097f1850dce6113b1fc300b6d5d71225325c750b37db404b936541" args="" -->ITERATOR_RESULT_TYPE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="c318dc8281097f1850dce6113b1fc3005fbe645481c1c999ad20f455ba71659f"></a><!-- doxytag: member="SNAPSHOT_RESULT_TYPE" ref="c318dc8281097f1850dce6113b1fc3005fbe645481c1c999ad20f455ba71659f" args="" -->SNAPSHOT_RESULT_TYPE</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="983bbfe3c55811f5f2a33908c4db8f2d"></a><!-- doxytag: member="xercesc::DOMXPathResult::DOMXPathResult" ref="983bbfe3c55811f5f2a33908c4db8f2d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">xercesc::DOMXPathResult::DOMXPathResult </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="42f4681378ebc025e616c985675c05bc"></a><!-- doxytag: member="xercesc::DOMXPathResult::~DOMXPathResult" ref="42f4681378ebc025e616c985675c05bc" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual xercesc::DOMXPathResult::~DOMXPathResult </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Destructor.
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="af406f00c1248cd1dd1cee8a3cfb141e"></a><!-- doxytag: member="xercesc::DOMXPathResult::getResultType" ref="af406f00c1248cd1dd1cee8a3cfb141e" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMXPathResult.html#c318dc8281097f1850dce6113b1fc300">ResultType</a> xercesc::DOMXPathResult::getResultType </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the result type of this result.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>ResultType A code representing the type of this result, as defined by the type constants. </dd></dl>
</div>
</div><p>
<a class="anchor" name="c85f382c8f542422b6b61fdaa444cc23"></a><!-- doxytag: member="xercesc::DOMXPathResult::getTypeInfo" ref="c85f382c8f542422b6b61fdaa444cc23" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const <a class="el" href="classxercesc_1_1DOMTypeInfo.html">DOMTypeInfo</a>* xercesc::DOMXPathResult::getTypeInfo </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the DOM type info of the current result node or value (XPath 2 only).
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>typeInfo of type TypeInfo, readonly </dd></dl>
</div>
</div><p>
<a class="anchor" name="497157e657f5ad1dc061c3a6c0c5422e"></a><!-- doxytag: member="xercesc::DOMXPathResult::isNode" ref="497157e657f5ad1dc061c3a6c0c5422e" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool xercesc::DOMXPathResult::isNode </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns true if the result has a current result and the value is a node (XPath 2 only).
<p>
This function is necessary to distinguish between a string value and a node of type string as returned by the <a class="el" href="classxercesc_1_1DOMXPathResult.html#c85f382c8f542422b6b61fdaa444cc23" title="Returns the DOM type info of the current result node or value (XPath 2 only).">getTypeInfo()</a> function. <dl class="return" compact><dt><b>Returns:</b></dt><dd>isNode of type boolean, readonly </dd></dl>
</div>
</div><p>
<a class="anchor" name="8ddc30c8ae198ae01988a183d5f10f99"></a><!-- doxytag: member="xercesc::DOMXPathResult::getBooleanValue" ref="8ddc30c8ae198ae01988a183d5f10f99" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool xercesc::DOMXPathResult::getBooleanValue </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the boolean value of this result.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>booleanValue of type boolean The value of this boolean result. </dd></dl>
<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_1DOMXPathException.html">DOMXPathException</a></em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not BOOLEAN_TYPE (XPath 1.0) or if current result cannot be properly converted to boolean (XPath 2.0). <br>
NO_RESULT_ERROR: raised if there is no current result in the result object (XPath 2.0). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="ce548a9d7461518a2fa31281ae3d36b2"></a><!-- doxytag: member="xercesc::DOMXPathResult::getIntegerValue" ref="ce548a9d7461518a2fa31281ae3d36b2" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int xercesc::DOMXPathResult::getIntegerValue </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the integer value of this result (XPath 2 only).
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>integerValue of type int The value of this integer result. </dd></dl>
<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_1DOMXPathException.html">DOMXPathException</a></em>&nbsp;</td><td>TYPE_ERR: raised if current result cannot be properly converted to int (XPath 2.0). <br>
NO_RESULT_ERROR: raised if there is no current result in the result object (XPath 2.0). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="e101f415cd2160e4eb53896fdd9c6b02"></a><!-- doxytag: member="xercesc::DOMXPathResult::getNumberValue" ref="e101f415cd2160e4eb53896fdd9c6b02" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual double xercesc::DOMXPathResult::getNumberValue </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the number value of this result.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>numberValue The value of this number result. If the native double type of the DOM binding does not directly support the exact IEEE 754 result of the XPath expression, then it is up to the definition of the binding to specify how the XPath number is converted to the native binding number. </dd></dl>
<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_1DOMXPathException.html">DOMXPathException</a></em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not NUMBER_TYPE (XPath 1.0) or if current result cannot be properly converted to double (XPath 2.0). <br>
NO_RESULT_ERROR: raised if there is no current result in the result object (XPath 2.0). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="826fa65e2e6d9538212a471ac5f389a4"></a><!-- doxytag: member="xercesc::DOMXPathResult::getStringValue" ref="826fa65e2e6d9538212a471ac5f389a4" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const XMLCh* xercesc::DOMXPathResult::getStringValue </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the string value of this result.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>stringValue The value of this string result. </dd></dl>
<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_1DOMXPathException.html">DOMXPathException</a></em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not STRING_TYPE (XPath 1.0) or if current result cannot be properly converted to string (XPath 2.0). <br>
NO_RESULT_ERROR: raised if there is no current result in the result object (XPath 2.0). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="a0be471c8082f9a7fa16407252b6dd6a"></a><!-- doxytag: member="xercesc::DOMXPathResult::getNodeValue" ref="a0be471c8082f9a7fa16407252b6dd6a" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMXPathResult::getNodeValue </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the node value of this result.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>nodeValue The value of this node result, which may be null. </dd></dl>
<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_1DOMXPathException.html">DOMXPathException</a></em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not ANY_UNORDERED_NODE_TYPE, FIRST_ORDERED_NODE_TYPE, UNORDERED_NODE_ITERATOR_TYPE, ORDERED_NODE_ITERATOR_TYPE, UNORDERED_NODE_SNAPSHOT_TYPE, or ORDERED_NODE_SNAPSHOT_TYPE (XPath 1.0) or if current result is not a node (XPath 2.0). <br>
NO_RESULT_ERROR: raised if there is no current result in the result object. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="d8d5bb4d625bd09e859bd6c98cb9a7f4"></a><!-- doxytag: member="xercesc::DOMXPathResult::iterateNext" ref="d8d5bb4d625bd09e859bd6c98cb9a7f4" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool xercesc::DOMXPathResult::iterateNext </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Iterates and returns true if the current result is the next item from the sequence or false if there are no more items.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>boolean True if the current result is the next item from the sequence or false if there are no more items. </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>XPathException</em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE (XPath 1.0) or if ResultType is not ITERATOR_RESULT_TYPE (XPath 2.0). </td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em>&nbsp;</td><td>INVALID_STATE_ERR: The document has been mutated since the result was returned. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="cff93a8e921545526ffa38ac55935923"></a><!-- doxytag: member="xercesc::DOMXPathResult::getInvalidIteratorState" ref="cff93a8e921545526ffa38ac55935923" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool xercesc::DOMXPathResult::getInvalidIteratorState </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Signifies that the iterator has become invalid.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>invalidIteratorState True if ResultType is UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE (XPath 1.0) or ITERATOR_RESULT_TYPE (XPath 2.0) and the document has been modified since this result was returned. </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>XPathException</em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not UNORDERED_NODE_ITERATOR_TYPE or ORDERED_NODE_ITERATOR_TYPE (XPath 1.0) or if ResultType is not ITERATOR_RESULT_TYPE (XPath 2.0). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="6b28fc14ff3219225b2c193617095c60"></a><!-- doxytag: member="xercesc::DOMXPathResult::snapshotItem" ref="6b28fc14ff3219225b2c193617095c60" args="(XMLSize_t index)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool xercesc::DOMXPathResult::snapshotItem </td>
<td>(</td>
<td class="paramtype">XMLSize_t&nbsp;</td>
<td class="paramname"> <em>index</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the current result to the indexth item in the snapshot collection.
<p>
If index is greater than or equal to the number of items in the list, this method returns false. Unlike the iterator result, the snapshot does not become invalid, but may not correspond to the current document if it is mutated. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>of type XMLSize_t - Index into the snapshot collection. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>boolean True if the current result is the next item from the sequence or false if there are no more items. </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>XPathException</em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not UNORDERED_NODE_SNAPSHOT_TYPE or ORDERED_NODE_SNAPSHOT_TYPE (XPath 1.0) or if ResultType is not SNAPSHOT_RESULT_TYPE (XPath 2.0). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="aadb0155f0a703bc4b84f6805c1dc40a"></a><!-- doxytag: member="xercesc::DOMXPathResult::getSnapshotLength" ref="aadb0155f0a703bc4b84f6805c1dc40a" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual XMLSize_t xercesc::DOMXPathResult::getSnapshotLength </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The number of items in the result snapshot.
<p>
Valid values for snapshotItem indices are 0 to snapshotLength-1 inclusive. <dl class="return" compact><dt><b>Returns:</b></dt><dd>snapshotLength of type XMLSize_t </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>XPathException</em>&nbsp;</td><td>TYPE_ERR: raised if ResultType is not UNORDERED_NODE_SNAPSHOT_TYPE or ORDERED_NODE_SNAPSHOT_TYPE (XPath 1.0) or if ResultType is not SNAPSHOT_RESULT_TYPE (XPath 2.0). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="014c64924252670294628b75da5f77ad"></a><!-- doxytag: member="xercesc::DOMXPathResult::release" ref="014c64924252670294628b75da5f77ad" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void xercesc::DOMXPathResult::release </td>
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Called to indicate that this <a class="el" href="classxercesc_1_1DOMXPathResult.html" title="The DOMXPathResult interface represents the result of the evaluation of an XPath...">DOMXPathResult</a> 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.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="DOMXPathResult_8hpp-source.html">DOMXPathResult.hpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:54:59 2009 for XQilla DOM Level 3 API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>