XML APIs: DOM and SAX
DOM (Document Object Model)
- Provides a definitive API for accessing hierarchical description languages like XML, HTML
- Specifies interfaces for accessing all part of a document
- Includes inheritance, typing, and constants
SAX (Simple API for XML)
- An event-driven parser API
- API reports parsing events to application via callbacks
- Optimized for parsing large documents by eliminating need to keep tree structure in memory