---
title: "What does XmlValidatingReader class do?"  
description: "What does XmlValidatingReader class do?"  
author: "Vijay Shukla"  
published: 2013-04-02  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1706/what-does-xmlvalidatingreader-class-do  
category: "xml"  
tags: ["xml"]  
reading_time: 1 minute  

---

# What does XmlValidatingReader class do?

XmlValidatingReader represents a reader that provide document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) validation.

XmlValidatingReader implements the XmlReader class and provide support for data validation. Use the Schemas property to have the reader validate by using schema files that are cached in an XmlSchemaCollection. The ValidationType property specifies what type of validation the reader should perform. Setting the property to ValidationType.None creates a non-validating reader.

## Answers

### Answer by Vijay Shukla

XmlValidatingReader represents a reader that provide document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) validation.

XmlValidatingReader implements the XmlReader class and provide support for data validation. Use the Schemas property to have the reader validate by using schema files that are cached in an XmlSchemaCollection. The ValidationType property specifies what type of validation the reader should perform. Setting the property to ValidationType.None creates a non-validating reader.


---

Original Source: https://www.mindstick.com/interview/1706/what-does-xmlvalidatingreader-class-do

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
