What is the relationship between the DOM and SAX?
DOM and SAX are currently the two most popular APIs for manipulating XML documents. They differ significantly in provenance, in scope, and in programming style. They are not in direct competition with each other; each has strengths and weaknesses. Provenance:Unlike the DOM, SAX (“Simple API for XML”) is not being developed by the World Wide Web Consortium. Instead, it was developed by an informal group of participants of the XML-DEV mailing list. SAX 1 has been fairly widely supported by providers of XML processing software. SAX 2, now being developed, is not yet widely supported, and at this writing diverges significantly from SAX 1, though it includes the SAX 1 APIs for backward-compatibility purposes. Scope:SAX was originally designed specifically as an API for XML parsers. As such, it includes functions which won’t be supported in the DOM until DOM Level 3’s Load/Save module is released. On the other hand, SAX 1 discarded some information (such as comments) that the DOM retains. As