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.