DOM vs. SAX - which should I use for this situation?

admin

Administrator
Staff member
Tell me if I'm wrong, but it looks like Microsoft is pushing SAX to parseXML. Does that mean that SAX is better in every situation.I was under the assumption that DOM is more flexible, but takes takes quitea bit of memory to work with large files (what constitutes a large file?).SAX, however, is a less flexible, memory efficient, event-based way to parseeven large XML files.Situation: 3 - 5K chunk of XML is returned to client VB app. XML needsto be transferred into Classes sequentially.Who wins, DOM or SAX?Thanks in advance for your thoughts on this.Langer.
 
Back
Top