Stax2 API is an extension to standard Stax API ("the STandard Api for Xml processing"), pull-parser API of JDK, added in JDK 6.
Stax2 API is implemented natively by following Stax XML implementations:
- Aalto (performance-oriented, also non-blocking/async)
- Woodstox (full-featured, most compliant XML package on Java platform)
In addition, Stax2 API contains wrapper implementations that can be used to support most of the API on regular Stax implementations like Sun SJSXP (default Stax implementation bundled with JDK 1.6 and 1.7).
API classes are in package org.codehaus.stax2
.
Stax2 API also contains partial Reference Implementation of many of API classes, under
org.codehaus.stax2.ri
: intention is to make it as painless as possible for Java Stax parsers
to implement full Stax2 support.
Maven dependency is defined as:
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
<version>4.2.2</version>
</dependency>
Jars can be found from Central Maven repo.
Copyright (c) 2008 FasterXML LLC info@fasterxml.com
This source code is licensed under standard BSD license, which is compatible with all Free and Open Software (OSS) licenses.