File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Difference between Sax and Dom Parser" Watch "Difference between Sax and Dom Parser" New topic

Difference between Sax and Dom Parser

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163

please give me the difference between Sax and dom parser.

why there is two xml parserS?
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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

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:
subject: Difference between Sax and Dom Parser
It's not a secret anymore!