Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > b3bdfe6d859a3d6920ff2c44b38e9a6f > files > 3066

saxon-manual-9.4.0.9-2.mga7.noarch.rpm

<?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 2011-12-09T20:47:22.916Z--><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 <a class="bodylink"
            href="../../javadoc/net/sf/saxon/xpath/XPathExpressionImpl.html"><code>net.sf.saxon.xpath.XPathExpressionImpl</code></a>)
 provides additional methods for evaluating the XPath expression. In particular the <code>rawIterator()</code>
method with no arguments returns a Saxon <a class="bodylink" href="../../javadoc/net/sf/saxon/om/SequenceIterator.html"><code>SequenceIterator</code></a> 
                        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 <a class="bodylink" href="../../javadoc/net/sf/saxon/value/QNameValue.html"><code>QNameValue</code></a>.
The <a class="bodylink" href="../../javadoc/net/sf/saxon/om/NodeInfo.html"><code>NodeInfo</code></a> interface is described in the next section.</p>
      <p>You can call methods directly on the <a class="bodylink" href="../../javadoc/net/sf/saxon/om/NodeInfo.html"><code>NodeInfo</code></a> 
                        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>