I have an XSD file and an XML file, how can I check if the XML is in the right schema like the XSD file?
i know there is an validate function in the XmlDocument class, but it needs an event handler
and all I need is true or false.
P.S. I’m working inVisual Studio 2010.
There is a much easier way to do it:
P.S : I didn’t write this in VS so there might be a word that does not have the right case sensitivity, but this code works!