---
title: "What is XMLTextReader?"  
description: "What is XMLTextReader?"  
author: "Vijay Shukla"  
published: 2013-04-02  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/1704/what-is-xmltextreader  
category: "xml"  
tags: ["xml"]  
reading_time: 2 minutes  

---

# What is XMLTextReader?

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.

## Answers

### Answer by 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.


---

Original Source: https://www.mindstick.com/interview/1704/what-is-xmltextreader

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
