Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the relationship between the DOM and SAX?

DOM relationship SAX
0
10 Posted

What is the relationship between the DOM and SAX?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123