DOM and SAX

There are currently two primary models for processing XML documents:

  • DOM: Document Object Model

  • SAX: Simple API for XML

Neither DOM nor SAX is "better" in general terms, they both have their place. The choice depends on what one is trying to do with XML data.

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