Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML parser

 
arbitha jeeva
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which is best SAX or DOM?
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Browse through recent posts in this forum, many of the topics are related to deciding which problem requires which parser.

Bill
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic