I’ve just started to learn xml, so i’m a beginner in this domain. I want to validate xml file against xsd file (just to figure out how xsd works).
In VS 2010 i created XML file an’ XSD file and copied and pasted some code into it.
But when i make changes in the XML file there is no warnings as expected. I think the reason is that i need to bind XSD file to my XML file.
Am i right? and if so, how can i bind XSD to XML?
You have to put the schema definition in your xml file like this:
When the xml file is opened, VS 2010 displays new Menu Item
XML. Open it and select the last MenuItemSchemas....Assure that your schema file (xsd) is in the list. If not, add it (add button). Also be sure that there are not more references to the same schema.
Finally, use the first column to check which schema should be used for validation/intellisense