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 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
Author

SAX and DOM

aman bhatt
Greenhorn

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.

Thanks,
aman
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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
 
Similar Threads
how to validate xml using local xsd
SAX Vs DOM
Class Path
What is the difference between SAX and DOM ?.
How do i obtain unique value thru this code