XML Schema (XSD) Validation using SAXParser This section describes a tutorial example on how to the Xerces2 SAXParser class to validate an XML document assigned with an XSD file.
Note that tutorial examples given in this section were taken in 2002 using JDK 1.4 and Xerces-J 2.3.
To turn on validation, you must request it explicitly.
In this tip, I show you how to do that using the SAX API.
XML validation is the cornerstone of good document authoring.
The key to giving meaning to an XML document -- and the crux of validation -- lies in the set of constraints that governs that document, and in ensuring that those constraints are followed.
As an example, the element elements are allowed (as in a lengthy novel with hundreds of pages).
Extract the Xerces-J-bin.2.5.0(for Windows) or Xerces-J-bin.2.5.0gz (for Unix) files to the installation directory of your choice.
Requiring users to install Xerces is simply too onerous a requirement; few will have it already and the Xerces installation system leaves much to be desired.
On CPAN, the only available XML Schema validator is XML:: Schema.
I'm writing a piece of software which uses Xerces/C ( ) to validate documents against XML Schema schemas.
This works very well, but I'd like to release my project to the world.