Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAX and DOM

 
aman bhatt
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic