<h1>xercesc::DOMXPathExpression Class Reference</h1><!-- doxytag: class="xercesc::DOMXPathExpression" -->The <code><aclass="el"href="classxercesc_1_1DOMXPathExpression.html"title="The DOMXPathExpression interface represents a parsed and resolved XPath expression...">DOMXPathExpression</a></code> interface represents a parsed and resolved XPath expression.
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Evaluates this XPath expression and returns a result. <ahref="#aa8231f1de4a0356844e422aa08e2336"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called to indicate that this <aclass="el"href="classxercesc_1_1DOMXPathExpression.html"title="The DOMXPathExpression interface represents a parsed and resolved XPath expression...">DOMXPathExpression</a> is no longer in use and that the implementation may relinquish any resources associated with it. <ahref="#3f1d986c3bfc70dd8506de7a88999c76"></a><br></td></tr>
<tr><tdcolspan="2"><br><h2>Protected Member Functions</h2></td></tr>
The <code><aclass="el"href="classxercesc_1_1DOMXPathExpression.html"title="The DOMXPathExpression interface represents a parsed and resolved XPath expression...">DOMXPathExpression</a></code> interface represents a parsed and resolved XPath expression.
<tr><tdvalign="top"></td><tdvalign="top"><em>contextNode</em> </td><td>of type <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> The context is context node for the evaluation of this XPath expression. If the XPathEvaluator was obtained by casting the Document then this must be owned by the same document and must be a <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code>, <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code>, <code>DOMAttribute</code>, <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code>, <code><aclass="el"href="classxercesc_1_1DOMCDATASection.html"title="CDATA sections are used to escape blocks of text containing characters that would...">DOMCDATASection</a></code>, <code><aclass="el"href="classxercesc_1_1DOMComment.html"title="This interface inherits from CharacterData and represents the content of a comment...">DOMComment</a></code>, <code><aclass="el"href="classxercesc_1_1DOMProcessingInstruction.html"title="The DOMProcessingInstruction interface represents a "processing instruction"...">DOMProcessingInstruction</a></code>, or <code>XPathNamespace</code>. If the context node is a <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> or a <code><aclass="el"href="classxercesc_1_1DOMCDATASection.html"title="CDATA sections are used to escape blocks of text containing characters that would...">DOMCDATASection</a></code>, then the context is interpreted as the whole logical text node as seen by XPath, unless the node is empty in which case it may not serve as the XPath context. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>type</em> </td><td>If a specific type is specified, then the result will be coerced to return the specified type relying on XPath conversions and fail if the desired coercion is not possible. This must be one of the type codes of <code><aclass="el"href="classxercesc_1_1DOMXPathResult.html"title="The DOMXPathResult interface represents the result of the evaluation of an XPath...">DOMXPathResult</a></code>. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>result</em> </td><td>of type DOMXPathResult* The result specifies a specific result object which may be reused and returned by this method. If this is specified as nullor the implementation does not reuse the specified result, a new result object will be constructed and returned. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><code>DOMXPathException</code></em> </td><td>TYPE_ERR: Raised if the result cannot be converted to return the specified type. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><code>DOMException</code></em> </td><td>WRONG_DOCUMENT_ERR: The <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> is from a document that is not supported by the <code>XPathEvaluator</code> that created this <code><aclass="el"href="classxercesc_1_1DOMXPathExpression.html"title="The DOMXPathExpression interface represents a parsed and resolved XPath expression...">DOMXPathExpression</a></code>. NOT_SUPPORTED_ERR: The <aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> is not a type permitted as an XPath context node or the request type is not permitted by this <code><aclass="el"href="classxercesc_1_1DOMXPathExpression.html"title="The DOMXPathExpression interface represents a parsed and resolved XPath expression...">DOMXPathExpression</a></code>. </td></tr>
Called to indicate that this <aclass="el"href="classxercesc_1_1DOMXPathExpression.html"title="The DOMXPathExpression interface represents a parsed and resolved XPath expression...">DOMXPathExpression</a> is no longer in use and that the implementation may relinquish any resources associated with it.