OOPS
December 10, 2023Question 1257 – Nielit STA [02-12-2018]
December 10, 2023Question 1246 – Nielit STA [02-12-2018]
The situation when we can’t use a SAX parser is:
Correct Answer: D
Question 24 Explanation:
We should use a SAX parser when:
→ You can process the XML document in a linear fashion from top to down.
→ The document is not deeply nested.
→ You are processing a very large XML document whose DOM tree would consume too much memory. Typical DOM implementations use ten bytes of memory to represent one byte of XML.
→ The problem to be solved involves only a part of the XML document.
→ Data is available as soon as it is seen by the parser, so SAX works well for an XML document that arrives over a stream.
→ You can process the XML document in a linear fashion from top to down.
→ The document is not deeply nested.
→ You are processing a very large XML document whose DOM tree would consume too much memory. Typical DOM implementations use ten bytes of memory to represent one byte of XML.
→ The problem to be solved involves only a part of the XML document.
→ Data is available as soon as it is seen by the parser, so SAX works well for an XML document that arrives over a stream.
We can process the XML document in a linear fashion from the top to down
We are processing a very large XML document whose DOM tree would consume too much memory
The problem to be solved involves only part of the XML document
When we are parsing HTML documents to read and store the contents written in fields.
Subscribe
Login
0 Comments