Otherwise, a message that describes the error is displayed.
You can click on the links in the error message to jump to the node in the XML document where the error was found.
The input document contains an extra attribute which has not been defined in the XML Schema, this shows that the XML Schema has been used for the validation.
When using this XML Schema to validate the input XML document, the following error gets reported: ) as defined below has been used in the code examples to validate the input document.
Now let's say you want to read this XML file with Power Shell.
An XML document is considered ‘well-formed’ if it follows the normal rules of XML. In the example below we look at validating an XML document while using DOM, SAX and St AX.
On the other hand, an XML is considered valid if it follows the rules specified in the DTD or XSD.
You can specify that a document be automatically validated when a file is opened or saved ( command.
If a document is valid, a successful validation message is displayed in the Messages window.