<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="using-xquery" page="api-query" subpage=""/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: Running Queries from a Java Application</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: Running Queries from a Java Application"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>Running Queries from a Java Application</h1>
      <p>Saxon offers three different APIs allowing queries to be run from Java:</p>
      <ul>
         <li content="para">
            <p>The XQJ interface is an implementation of the current draft of the proposed
XQuery API for Java (XQJ) interface defined in JSR-225</p>
         </li>
         <li content="para">
            <p>The s9api interface is a newly designed interface allowing integrated access to all
Saxon's XML processing capabilities in a uniform way, taking advantage of the type safety
offered by generics in Java 5</p>
         </li>
         <li content="para">
            <p>There is also a legacy interface retained from previous Saxon releases, which will
be appropriate if you are using JDK 1.4, or if you need access to lower-level Saxon internals.</p>
         </li>
      </ul>
      <p class="subhead">Links</p>
      <ul>
         <li>
            <p><a class="bodylink" href="api-query/s9api-query.xml">Using s9api for XQuery</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="api-query/xqj.xml">Invoking XQuery using the XQJ API</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="api-query/embedding.xml">The legacy XQuery API</a></p>
         </li>
      </ul>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="api-query/s9api-query.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>