HTML DOM Question: Download HTML DOM PDF

What is difference between DOM and SAX? What would we use if an option is given?

Tweet Share WhatsApp

Answer:

DOM parses an XML document and returns an instance of org.w3c.dom.Document. This document object's tree must then
be "walked" in order to process the different elements. DOM parses the ENTIRE Document into memory, and then makes it
available to you. The size of the Document you can parse is limited to the memory available.

Download HTML DOM PDF Read All 10 HTML DOM Questions
Previous QuestionNext Question
Explain multi-tagging?Explain DOM and how does it relate to XML?