< prev index next >

src/java.xml/share/classes/javax/xml/xpath/package.html

Print this page

        

*** 280,290 **** <a name="XPath.Use"></a> <h3>5. Using the XPath API</h3> Consider the following XML document: - <p> <blockquote> <pre> &lt;widgets&gt; &lt;widget&gt; &lt;manufacturer/&gt; --- 280,289 ----
*** 364,374 **** <p> The XPath 1.0 Number data type is defined as a double. However, the XPath specification also provides functions that returns Integer type. To facilitate such operations, the XPath API allows Integer and Long to be used in {@code evaluateExpression} method such as the following code: - <p> <blockquote> <pre> int count = xpath.evaluate("count(/widgets/widget)", document, Integer.class); </pre> </blockquote> --- 363,372 ----
< prev index next >