which will be most memory-efficient way?

You have to read large amounts of XML data. The data resides on an external data source. You need to read the XML data and validate it as it is read. Which of the following classes should you use which will be most memory-efficient way?

You have to read large amounts of XML data. The data resides on an external data source. You need to read the XML data and validate it as it is read. Which of the following classes should you use which will be most memory-efficient way?

A.
DataSet

B.
XmlReader

C.
XmlDataDocument

D.
XmlDocument

Explanation:
If large amount of data is read, you should use the XMLReader class. It represents a forward-only and read-only. This is a very efficient way because the document does not need to be loaded into the memory.

Incorrect Answers:
A: The DataSet represents disconnected relational data and the data need to be in the memory.
C: The XmlDataDocument implements the functionality of the XmlDocument class and the DataSet class.
D: The XmlDocument implements the XM LDocument Object Model.



Leave a Reply 0

Your email address will not be published. Required fields are marked *