Kirill Grouchnikov wrote:
> Hi, Brian,
>
> The default implementation of XMLInputFactory, the
> class MXParserFactory is located in jsr173_1.0_ri.jar
> which is a part of reference implementation from
> http://ftpna2.bea.com/pub/downloads/jsr173.jar.
> You will have to add this jar to your application.
>
> Alternatively, you may use WebLogic implementation
> from http://ftpna2.bea.com/pub/downloads/wls_stax.jar.
>
>
> Before calling XMLInputFactory.newInstance(), call
> System.setProperty("javax.xml.stream.XMLInputFactory",
> "weblogic.xml.stax.XMLStreamInputFactory");
>
> The last (actually should be the first) : JAXB 2.0
> comes bundled with implementation of XMLInputFactory.
> The implementation is in sjsxp.jar. As before, you
> will need to call
>
> System.setProperty("javax.xml.stream.XMLInputFactory",
> "com.sun.xml.stream.ZephyrParserFactory");
StAX follows the well-known service provider look-up mechanism, so you
don't have to set a system property --- you just need to drop a jar in a
classpath.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com