[jdom-interest] Validation using XML Schema

donaldp at mad.scientist.com donaldp at mad.scientist.com
Tue Aug 22 14:33:19 PDT 2000

> When I use the (more recent) xerces.jar from the JDOM
> distribution, I get the following error:
> org.jdom.JDOMException: Error on line 2 of XML document: Element type "personnel


It looks like it is trying to validate the document but you
have not given it a proper DTD - or you have given a DTD
that does not match document. Xerces has a feature that
saids validate if DTD present - otherwise
don't. Unfortunately the only way to get it is to copy
sourcecode of org.jdom.input.SAXBuilder into own project and
modify. I have been trying to get them to enable this - but
so far no luck. If I get no ack or nack within next day I
will try for 3rd time lucky :P



| Latrobe University,     | Does the name 'Pavlov' |
| Bundoora, Australia     |    ring a bell ?       |

More information about the jdom-interest mailing list