XQuery from a Java application
Saxon offers two different APIs allowing queries to be run from Java:
-
The XQJ interface is an implementation of the XQuery API for Java (XQJ) interface defined in JSR-225. For information on using this API to invoke the Saxon processor, see Invoking XQuery using the XQJ API.
-
The s9api interface is a Saxon-specific 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. For information on using this API to invoke the Saxon processor, see Using s9api for XQuery.