InterviewSolution
| 1. |
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. 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. |
|