Validating xml against xsd
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.
If you use backward slash, it gives schema parsing error but forward slash works fine.
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).
Using the exact XML & XSD from this example worked and i realized what i was doing wrong.
*The maximum size limit for file upload is 2 megabytes.
The XML plugin is installed properly in the plugins subdir and the 3 DLLs are copied to the Notepad EXE subdirectory.
Other XML "validation" features work but there is no way to validate against an XSD.
The Xml Document class does not validate the XML in the Document Object Model (DOM) against an XML Schema definition language (XSD) schema or document type definition (DTD) by default; the XML is only verified to be well-formed.
To validate the XML in the DOM, you can validate the XML as it is loaded into the DOM by passing a schema-validating Xml Reader to the Load method of the Xml Document class, or validate a previously unvalidated XML document in the DOM using the Validate method of the Xml Document class.
package provides an API for XML documents validation.