The StAX APIs defined in javax.xml.stream provide a streaming Java technology-based, event-driven, pull-parsing API for reading and writing XML documents. StAX offers a simpler programming model than SAX and more efficient memory management than DOM.
StAX enables developers to parse and modify XML streams as events.
The Streaming API for XML (StAX) is a Java based API for pull-parsing XML.
- javax.xml.stream: Provides StAX-specific transformation APIs.