Extension API for Stax, Java pull-parsing API (STreaming Api for Xml)
Clone or download
Latest commit dcb21d7 Mar 31, 2018
Failed to load latest commit information.
release-notes ... Mar 28, 2018
src/main stylistic changes Mar 31, 2018
.gitignore Checking in initial version, to migrate out of Codehaus Jul 6, 2013
.travis.yml fix travis settings Mar 28, 2018
README.md ... Mar 28, 2018
pom.xml resolve last warnings wrt overrides Mar 29, 2018



Stax2 API is an extension to standard Stax API ("STandard Api for Xml procesing"), pull-parser API of JDK, added in JDK 6.


Build Status


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 API on regular Stax implementations like Sun SJSXP (default Stax implementation bundled with JDK 1.6 and 1.7).


API is licensed under standard BSD license, which is compatible with all Free and Open Software (OSS) licenses.

Java package

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 parser to implement full Stax2 support.


Maven dependency is defined as:


Jars can be found from Central Maven repo.