aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML parser" Watch "XML parser" New topic
Author

XML parser

arbitha jeeva
Greenhorn

Joined: Dec 05, 2009
Posts: 1
which is best SAX or DOM?
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1666
    
    7

It depends. They both have their advantages and drawbacks.
There's really no way to answer your question without a specific case to apply it to.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
Browse through recent posts in this forum, many of the topics are related to deciding which problem requires which parser.

Bill

Java Resources at www.wbrogden.com
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
The Simple API for XML (SAX) and the Document Object Model (DOM) API are not eXtensible Markup Language (XML) parsers. They are application programming interfaces (API) which comunicate with an XML parser.

Which API is best, SAX or DOM, depends mostly upon specific requirements for a specific implementation. This includes things like the structure of the XML-based language to be processed, the average file-size of the instance document to be processed, and what type of processing need to execute.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML parser
 
Similar Threads
A Poll, a Poll, a very simple Poll!
Static Initializers.
Puzzling question from Mughal and Rasmussen
Interesting classpath question
question