What does XmlValidatingReader class do


What does XmlValidatingReader class do?

✍: Guest


XmlTextReader class does not validate the contents of an XML source against a schema. The correctness of XML documents can be measured by two things is the document well formed and is it valid. Well-formed means that the overall syntax is correct. Validation is much deeper which means is the XML document is proper w.r.t schema defined. So the XmlTextReader only checks if the syntax is correct but does not do validation.
There’s where XmlValidatingReader class comes in to picture. So this again comes at a price as XmlValidatingReader have to check for DTD and Schema’s there are slower compared to XmlTextReader.

2007-10-31, 7249👍, 0💬