ValidateXML is a simple xml validation tool that allows validating one or more xml files against DTDs; either ones specified by the document itself, or against an alternative DTD specified via command line argument. Latter is often useful when either testing new versions of DTDs, or when original document does not contain a DTD reference.
Latest version is based on Woodstox XML-processor, version 3.2.1 (built on 05-Jun-2007).
You can download:
- "Binary" jar file: validate-xml-3.2.9.jar
- Source code (which also contains sources for DTDFlatten tool): wstx-tools-src-3.2.9.tar.gz .
Note: to compile tools, you also need to download Woodstox (binary) jar and put it under lib/ sub-directory (matching version used to build released package is also included in Subversion repository).
Older version(s) available:
- Woodstox 2.03 - based validate-xml-2.0.3.jar (built on 26-sep-2005)
To use Validate, simply enter something like:
java -jar validate-xml.jar <document1> ... <documentN>
There are couple of configurable settings; the easiest way to view possibilities is to omit the xml file(s), in which case usage information is shown.