SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Notices
Using XSLT 2.0
Using XQuery
| Introduction
| Running XQuery from the Command Line
» | Running Queries from a Java Application
| Using XQuery Update
| Calling XQuery Functions from Java
| Result Format
| Compiling Queries to Java code
| Extensibility
| Extensions
| Use Cases
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# Running Queries from a Java Application

Saxon offers three different APIs allowing queries to be run from Java:

- The XQJ interface is an implementation of the current draft of the proposed XQuery API for Java (XQJ) interface defined in JSR-225

- 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

- 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.

- Using s9api for XQuery

- Invoking XQuery using the XQJ API

- The legacy XQuery API

Next