Validating xml with xsd in net
What I have tried: Visual Studio still isn't giving up any useful debugging or editing information.I tried both 20 (I've done it before in 2008 I thought) Update: I had another developer try this and it failed for him too.Finally the result is added to View Bag and View is rendered.The Validate XMLUsing XSD() method validates the Xml file against Xsd file.Turns out the file I was trying to validate didn't have an 'xml' file extension.Added to the end of my filename, and the validation started to work. Visual Studio, when I open the file, validates it against the schema and lists errors perfectly.
The schema file is read from the specified path using Xml Reader class's create method.
I know I have done this before, but it isn't working today, nor can I find anywhere that explains how to do it.
It could be my lack of sleep, but I suspect gremlins.
So, that was one of the easiest ways to validate XML file. She is familiar with Object Oriented Programming Paradigms and also has a great interest in relational database technologies.
Her hobbies include reading novels and listening music.
The illustration validates an XML document that the user chooses, either or catelog1against the XML Schema document