What is XMLTextReader?

Last updated:9/19/2020 9:24:14 AM

1 Answers

Vijay Shukla
Vijay Shukla

The XmlTextReader class requires rapid access to XML data. It doesn’t require reading the complete document into memory through the Document Object Model (DOM). The class is derived from the XmlReader class and implements all the methods defined in the XmlReader class. The following are the functions of the XmlTextReader class:

* It enforces rules of a well-formed XML document.

* It does not provide any data validation in a document.

* It checks the Document Type Definition (DTD) and DocumentType nodes for their well-formed structure, but does not validate these nodes by using the DTD.

Answer