29.2 Parsing XML Documents
- Parser - reads and analyzes an XML document
- Available in C++, Java, and many other languages
- Two common flavors:
- DOM (Document Object Model)
- Builds parse tree out of entire document
- Easier to use
- Complete overview of the data
- SAX (Simple Access to XML)
- Event-driven; calls user-provided functions on certain
events
- More efficient for large documents. Gives client information
in bits and pieces
prev
|top
|next