DOM vs. SAX

  • DOM is good fit with traditional programming languages which emphasize data structure fiddling, especially those in the object-oriented tradition. It's well supported by things like XPath and XSLT.

  • SAX is a much poorer fit with "main-stream" languages, is consequently (perceived of as) harder to use, and is less well supported. We need a better sequential processing model for XML.

New Models for Processing Text and XML with Python Sam Wilmott
Slide 31 of 51        www.wilmott.ca