This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 13000
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.
Have you checked out Aspose?
subject: SAX and DOM
It's not a secret anymore!