HTML DOM Question: Download HTML DOM PDF
What is difference between DOM and SAX? What would we use if an option is given?
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.
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.
Previous Question | Next Question |
Explain multi-tagging? | Explain DOM and how does it relate to XML? |