Re: Validate XML against DTD? XSD OK. SSCCE.
Piotr Kobzda wrote:
Does anybody demonstrate how to validate against DTD?
...
You may also do something I call validation of a rewritten XML against a
given DTD, an example is there:
<http://groups.google.pl/group/comp.lang.java.programmer/msg/ce4940523b837d20?>
I had meant to revisit that. Unfortunately I get along the lines of..
D:\java ValidateJNLP
org.xml.sax.SAXParseException: White space is required after
the element type "update" in the element type declaration.
Exception in thread "main" org.xml.sax.SAXParseException:
White space is required after the element type "update" in
the element type declaration.
at com.sun.org.apache.xerces.internal.parsers.
AbstractSAXParser.parse(AbstractSAXParser.java:1231)
...
How about I/we rework it to a form that can pull the XML/DTD
directly off the net, and upload it to the same directory on
my site? Perhaps that is the better example to continue with.
Also. V. 0.4 of XMLValidate has been uploaded, updating the
JNLP from 1.5 to 6.0 - if it is going to fail for a DTD - it might
as well fail for the current version!
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1