Libxml embeds an XML and an HTML parser (SGML docbook available too).
SAX
- Simple Api for XML
- Callback based API:
- startDocument(), endDocument()
- startElement(), endElement()
- characters(), etc.
DOM
- Acronym for Document
Object Model
- tree based API
- libxml expose the tree structure
- libxml provides tree manipulation routines
- gdome2 provide a real implementation of DOM2
- DOM1 and DOM2 are W3C recommendations