The purpose of the schema is to define the legal building blocks of an XML document.
It defines the document structure with a list of legal elements.
In this page you can check the validity of your XML Schema (XSD) file. The library used in this page is jaxp, Java API for XML Processing, version 1.4, from Java(TM) SE Runtime Environment (build 1.7.0_06-b24).
by Domenico Briganti is licensed under a Creative Commons Attribuzione 3.0 Unported License.
Can someone explain how to use Notepad to validate an xml file against an xsd.
There are no options in the "XML Tools" plugin dropdown that provides for specifying an XSD file.
XSD files are "XML Schemas" that describe the structure of a XML document.
The validator checks for well formedness first, meaning that your XML file must be parsable using a DOM/SAX parser, and only then does it validate your XML against the XML Schema.
We can change the data type of the tags as in the following screen.5.
I changed the data type of the PRODCUTID tag to integer. Now I changed the value of the PRODUCT ID tag to a string value. Now as we changed the value of the product id, it starts showing an error as in the following screen.
The validator will report fatal errors, non-fatal errors and warnings.
If the XSD is publicly available using HTTP and referenced through a "schema Location" or "no Namespace Schema Location", then the validator will pick it up and it doesn't need to be specified/uploaded.
*The maximum size limit for file upload is 2 megabytes.