DOM vs. SAX

  • DOM: Parse an XML document and map to a tree structure. DOM delivers the resulting tree structure to the client and provides tools for walking it.

  • SAX: Parse an XML document and, for each structural component or boundary, invoke a client's defined method.

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