The gold standard Stax XML API implementation. Now at Github.
The most common way is to use Maven (or Ivy) to access it from Maven Central repository. Coordinates for this are:
- Group id:
com.fasterxml.woodstox
- Artifact id:
woodstox-core
- Latest published version: 5.0.3 (23-Aug-2016)
- (NOTE! Version
5.0.0
was accidentally released as broken, not containing actual classes -- 5.0.1 is the first functioning 5.x version).
- (NOTE! Version
Note that Maven id has changed since Woodstox 4.x.
Woodstox 5 and above require Java 6 (JDK 1.6); as well as Stax API that is included in JDK. The only other mandatory dependence is Stax2 API, extended API implemented by Woodstox and some other Stax implementations (like Aalto.
Optional dependency is Multi-Schema Validator (MSV) that is needed if using XML Schema or RelaxNG validation functionality
Woodstox 5.x is licensed under Apache 2 license.
Most configuration is handled using standard Stax mechanism, property access via
XMLInputFactory.setProperty(propertyName, value)
for configuring XML reading aspectsXMLOutputFactory.setProperty(propertyName, value)
for configuring XML writing aspects
Names of properties available, including standard Stax 1.x ones, are documented in a series of blog posts:
- Stax 1.x standard configuration properties
- Stax2 extension configuration properties
- Woodstox-specific configuration properties
- User mailing list for Qs: woodstox-user Google group
- Check out project Wiki for javadocs