To validate against a DTD Schema you can use an XML editor such as XMLSpy
or Morphon, or use the sax.Writer example code from the Xalan Apache
:
java -classpath xercesImpl.jar:xercesSamples.jar sax.Writer -v yourfile.xml
If you run sax.Writer without the parameters
java -classpath xercesImpl.jar:xercesSamples.jar sax.Writer
you can read about the options and defaults.
On Windows, replace ":" by ";".
NOTE: Some browsers
may rename the ".jar" suffixes to ".zip" or ".html" during download. You
must then rename the files such that they end with ".jar".