Stax validating parser
A streaming alternative to these approaches was proposed in JSR-173: Streaming API for XML (St AX).Its final release was published in March 2004 and it became part of JAXP 1.4 (to be included in the upcoming Java 6 release). In fact, what distinguishes St AX from other approaches is the application's ability to process XML as a stream of events.The idea of handling XML as a set of events is not entirely new (in fact, it is already present in SAX); however, the difference is that St AX allows the application code to pull these events one after another, rather than having to provide a handler that receives events from the parser at the parser's convenience. Saxon has been validated with two St AX parsers: the Zephyr parser from Sun (which is supplied as standard with JDK 1.6), and the open-source Woodstox parser from Tatu Saloranta.
In my experience, Woodstox is the more reliable of the two.From JSR-173 Specification• Final, V1.0 (used under fair use).