<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="xpath-api" page="jaxp-xpath" subpage="saxon-additions"/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: Additional Saxon methods</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: Additional Saxon methods"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>Additional Saxon methods</h1>
      <p>Saxon's implementation of <code>XPathExpression</code> (namely <code>net.sf.saxon.xpath.XPathExpressionImpl</code>)
 provides additional methods for evaluating the XPath expression. In particular the <code>rawIterator()</code>
method with no arguments returns a Saxon <code>SequenceIterator</code> which allows the application to process
the results of any XPath expression, with no conversion: all values will be represented using a native Saxon class,
for example a node will be represented as a <code>NodeInfo</code> and a QName as a <code>QNameValue</code>.
The <code>NodeInfo</code> interface is described in the next section.</p>
      <p>You can call methods directly on the <code>NodeInfo</code> object to get information about a node: for
example <code>getDisplayName()</code> gets the name of the node in a form suitable for display, and
<code>getStringValue()</code> gets the string value of the node, as defined in the XPath data model. You
can also use the node as the context node for evaluation of subsequent expressions.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="jaxp-xpath-extension-functions.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>