The McDev Blog

Kevin McKelvin's perspective of the Ruby world.

Validating an XML Document Against an XSD in C#

With the latest and greatest iteration of .NET, the XmlValidatingReader has been deprecated. According to the documentation, we should now be using an XmlReader with the appropriate settings.

Here’s roughly how I did it (simplified this a bit to illustrate the concept)