Yes: StAX is a standard part of JDK 1.6, but to use it with JDK 1.4 or 1.5
you'll need to download both the API and an implementation separately. I've
been disappointed with the BEA and Sun implementations of StAX, Woodstox
definitely seems the best available.
Although XQJ allows you to use a StAX parser, it doesn't of course require
it - and I don't think there is any real benefit in using a StAX parser
rather than a SAX parser in conjunction with Saxon.
> -----Original Message-----
> From: saxon-help-bounces@...
> [mailto:saxon-help-bounces@...] On Behalf
> Of Mark Volkmann
> Sent: 06 July 2008 16:27
> To: Mailing list for the SAXON XSLT and XQuery processor
> Subject: Re: [saxon] XQJ
> On Jul 6, 2008, at 8:49 AM, Mark Volkmann wrote:
> > I'm experimenting with the XQJ implementation in Saxon (saxon-
> > xqj.jar). I'm getting a ClassNotFoundException for
> > javax.xml.stream.XMLStreamReader. I see that class in the
> javadoc for
> > Java 6, but not in Java 5. Is Java 6 required to use XQJ
> with Saxon?
> > Is there a JAR I can download that will give me that class
> and allow
> > me to use Saxon and XQJ under Java 5?
> Answering my own question, I found that I can use XQJ with
> Saxon 9 and Java 5 if I download stax-api-1.0.1.jar from
> http:// stax.codehaus.org/. Is this the recommended JAR to grab?
> Mark Volkmann