23 February 2010

How to parse XML document with Java?

You can either use DOM or SAX from Java API. Each interface has its own advantages and disadvantages. SAX is very useful for large XML documents where you only want to get information from them but not modify them.
Check this very nice tutorial out: http://www.totheriver.com/learn/xml/xmltutorial.html
This is where I got to learn how to use DOM and SAX. And I just completed a project by using DOM.

1 comment:

Anonymous said...

how about vtd-xml? it is a lot better than SAX


http://vtd-xml.sf.net