Hey... I'm currently working with XML schemas to validate data input on the
client (a bit of a different use). Consequently, when I validate a
document, I want an immediate response if there is  problem (via an
exception or a return code or something). My org.xml.sax.ErrorHandler
implementation simply throws any exception it gets, and I expected these
exceptions to be thrown from the parser's parse() method. The result,
however, is that the XMLSchemaValidator catches it in  the loadSchema()
method, and prints out the stack trace. Is this really the desirable
behavior? It seems to me that most people would want the ability to catch
their exceptions, should they choose to throw them from the error handler
(especially since parse() throws a SAXException). Also, if there's a
problem loading the schema, shouldn't we have the option to respond in some
way? Since loadSchema() just prints out exceptions and error messages, this
doesn't appear to be possible.

Someone please let me know if I'm totally off base, or if there's a way to
do what I'd like to do.

Kito D. Mann
[EMAIL PROTECTED]


Reply via email to