This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Neither DOM or SAX can be preferred on the base that �DOM is better� or �SAX is better�. Each has its own class of tasks it suits best, and they both should be used complimentary. For more details you can read this and this threads.
Consider that SAX is a low level parsing method where you have to do all the work whereas DOM is fairly high level and creates an object tree for you. DOM also can be used to output XML where SAX inherently does not. Generally, most DOM parsers are written using a SAX parser. Download JAXP from Sun and try them both out.
<B>Rich Wardwell</B><BR> <A HREF="mailto:email@example.com" rel="nofollow">firstname.lastname@example.org</A> <BR>Sun Certified Programmer for the Java 2 Platform