jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes SAX and DOM 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 "SAX and DOM" Watch "SAX and DOM" New topic


aman bhatt

Joined: Nov 11, 2005
Posts: 5
There are many differences with DOM and SAX. Likse SAX is event based. Can i have some implemnted applications where SAX was preferred over DOM.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13018
Some indications that you might want to use SAX:
1. XML documents too large to fit in available memory
2. Only a small amount of information needs to be pulled from the document
3. The document processing can be done in a "straight thru" pass - for example extracting data from many identical records to a CSV text file.
I agree. Here's the link: http://aspose.com/file-tools
subject: SAX and DOM
It's not a secret anymore!