File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Difference between Sax and Dom Parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Difference between Sax and Dom Parser" Watch "Difference between Sax and Dom Parser" New topic
Author

Difference between Sax and Dom Parser

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Hi,

please give me the difference between Sax and dom parser.

why there is two xml parserS?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

You will find all that and more in this book.
Riya Dhir
Greenhorn

Joined: Feb 16, 2007
Posts: 2
Dom : needs for memory, more time; modify, delete parts of xml document in question, follows pull model

SAX: needs less memory, less time; can only read the documents, and return the info when encounter events, event driven and only forward driven; cant say the state of node at a time
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Sax and Dom Parser