Parsers
•
There are two principal models for
parsers.
•
SAX – Simple API for XML
–
Uses a call-back method
–
Similar to javax listeners
•
DOM – Document Object Model
–
Creates a parse tree
–
Requires a tree traversal