Validating an xml file dating an older coworker
This section contains topics that explain the automatic and manual validation possibilities in , how validation errors are presented, and information about built-in and custom validation scenarios.
For information about how to associate a schema for the purposes of validation (and content completion), see the Associating a Schema to XML Documents section.
XML validation is the process of checking a document written in XML (e Xtensible Markup Language) to confirm that it is both well-formed and also "valid" in that it follows a defined structure.
A well-formed document follows the basic syntactic rules of XML, which are the same for all XML documents.
The editor uses heuristics to open a file using the best interpretation of the tagging that it can.
Visual Studio, when I open the file, validates it against the schema and lists errors perfectly. This program validates the XML document against the schema successfully.However, when the user selects the XML document catalog1.xml, validation fails for the book element in the lines containing more than one title element.As you make updates to a file, the editor incrementally reinterprets your document, changing the highlighting, tree view, and so on.Many formation errors are easy to spot in the syntax highlighting, so you can easily correct obvious errors on-the-fly.