[jdom-interest] customized error handling
laurent.bihanic at atosorigin.com
Mon Aug 18 00:51:46 PDT 2003
Jing Yang wrote:
> During validating process (against schema),
> is it possible to trace the Element(in JDOM) that causes invalidity ?
No because when the parser encounters an error it stops the parse. Thus, the
faulty element is generally not known of JDOM.
A workaround to this problem is to parse the document without requesting
validation and then to validate the JDOM document using JDOM's schema
validator (package org.jdom.contrib.schema in jdom-contrib module).
More information about the jdom-interest