The StAX API
The StAX API supports methods for iterative, event-based processing of XML documents. StAX authors found it more useful to specify two small, efficient APIs than to create one large, complex API. Each of the two main StAX APIs, XMLStreamReader and XMLEventReader, gives the developer a slightly different perspective. XMLStreamReader is often referred to as a cursor API, while XMLEventReader is considered an iterator API.