Please enable DTD-validation with Xerces. Seems not to
be very difficult if I read this passage of the Xerces
documentation:
"How do I turn on DTD validation?
You can turn validation on and off via methods
available on the SAX2> XMLReader interface. While only
the SAXParser implements the XMLReader interface, the
methods required for turning on validation are
available to both parser classes, DOM and SAX. The code
snippet below shows how to turn validation on -- assume
that parser is an instance of either
org.apache.xerces.parsers.SAXParser or
org.apache.xerces.parsers.DOMParser.
parser.setFeature("http://xml.org/sax/features/validation",
true);"
Please not the following paragraph:
"IMPORTANT! Simply turning on validation will not make
Xerces actually report the errors that it detects. For
this, you need to implement the
org.xml.sax.ErrorHandler interface and register your
implementation with the parser using the
setErrorHandler method."
would be very nice to have because you could use xml
editors to create the xml sources...