JAXP StAX: Difference between revisions
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
=Component Packages= | =Component Packages= | ||
* <tt>[https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/package-frame.html javax.xml.stream]</tt> | * <tt>[https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/package-frame.html javax.xml.stream]</tt> defines the <tt>XMLStreamReader</tt> and <tt>XMLStreamWriter</tt> interfaces. | ||
* <tt>[https://docs.oracle.com/javase/8/docs/api/javax/xml/transform/stax/package-frame.html javax.xml.transform.stax]</tt> provide StAX specific transformation APIs. |
Revision as of 20:55, 9 November 2016
External
- Elliotte Rusty Harold introduction to StAX http://www.xml.com/pub/a/2003/09/17/stax.html
Internal
Overview
The StAX API provide streaming, event-driven, pull parsing for reading and writing XML documents, as an alternative to SAX push parsing and JAXP DOM full in-memory tree structure representation.
StAX offers a simpler programming model than SAX and more efficient memory management than JAXP DOM.
StAX Example
Component Packages
- javax.xml.stream defines the XMLStreamReader and XMLStreamWriter interfaces.
- javax.xml.transform.stax provide StAX specific transformation APIs.