Validating an xsd
When an XML document is assigned with an XML Schema (XSD) file, it is ready to be validated using XMLPad.The XML file, first_html_xsd.xml, created in the previous section an good example of XML documents with XSD assigned.See the next section below for a description of the error message and how to fix validation errors with the smart fixes of XMLSpy.if you do not want these suggestions to be displayed.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.Note that errors of well-formedness (such as mismatched start and end tags), if such exist, are displayed prior to validation errors being displayed.
For example, in the screenshot above, four possible causes of the validation error are reported; the first one is expanded, the other three are collapsed. You can quickly go to the specific schema definition to see why exactly the document is invalid.
You should not validate your XML Schema documents against any of these schemas.
The referenced DTD files are included solely to provide XMLSpy with entry helper info for editing purposes should you wish to create documents according to these older recommendations.
So let's try to validate first_html_with XMLPad: 1. XMLPad will validate the current XML document against rules defined in the assigned XSD file.
In our case, the validation will pass successfully with a "No errors during validation found" message box.