Hello, I have an xml file and an xsd file. I am using c# (visual studio) to read the xml file but I would like my program to validate it against my xsd schema. Sounds simple but I have tried using the XMLValidatingReader - the compiler then tells me it is obsolete and I should use the XMLReader instead - Google searches have examples of using XMLValidatingReader so I'm going round in circles here - this is crazy - what am I missing ?

thanks,

Sally

XmlValidatingReader looks like it was phased out in the transition from .NET 1.1 to 2.0. Look at using XmlReader.Create() along with an XmlReaderSettings object instead.