I have an XML file without a Schema in the XML, and I need to validate the XML against a XSD schema. I have seen many examples where you inject the XSD in to the XML and then validate the XML. I don’t want to change the XML, is it possible to validate the XML, against the schema without change the XML?
Share
It’s easy to code with a few lines in C#.
I created a simple command line interface utility that takes two parameters: XML, XSD and does verification.
You can download it here.
Here’s the main code: