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