Java also includes the StAX API for parsing and creating XML documents. This chapter introduces you to StAX.
What Is StAX ?
Streaming API for XML (StAX) is a Java API for parsing an XML document sequentially from start to finish, and also for creating XML documents. StAX was introduced by Java 6 as an alternative to SAX and DOM, and is located midway between these “polar opposites.”