Intro to StAX XML API

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.