users@jaxb.java.net

ValidationEvent: I need some good suggestions !

From: Luca Buraggi <lburaggi_at_MATE.IT>
Date: Thu, 13 Mar 2003 07:30:23 -0700

I am now playing with on-demand validation executing the Validator.validate() method.
I am collecting the ValidationEvent(s) in a ValidationEventCollector for later analysis, as suggested in the JAXB documentation.

But the problem is that I don't know how to exactly identify the type of each error message.
The text messages resulting from ValidatioEvent.getMessage() are in english language and are not user oriented messages. I need a way to translate / modify them to show a more easy to understand text to the user.

A numeric error code or some other error ID code would be perfect but I can't find anything similar.

Where are these error messages generated ? (I am not a SAX parser specialist, but I suppose they come from there)
Could someone suggest a way out, apart from creating a SAXSource from my content tree and writing a new SAX validator to generate more application specific error messages ?

Thank

Luca Buraggi