DevX.com have an introductory article to using the StAX XML API. Whereas the DOM API loads the entire document into memory and treats it as a tree structure and SAX parses the document one-time on the fly, pushing events to document code when matching nodes are found, StAX takes a different approach, somewhere between both. StAX treats the XML as a stream, and can pull content from the stream on demand, when needed.