Hi Antoine,
Your best bet is to write your own validation event handler and examine
ValidationEvents as they occur. See the javadoc for the Validator
interface and search the archives for "Debugging Errors".
Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201 |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive |fruit flies like
781-442-0459 |Burlington, MA 01803 |a banana. Groucho
Antoine Brun wrote:
> Hello,
>
> I need to build a JAXB object in a JavaCC parser and then marshall it to XML and for debugging purpose I would like to marshall the object to XML without validation. As a matter of fact, when the parsing come to its end and it is time to go from java object to XML, I get a
>
> /DefaultValidationEventHandler: [ERROR]: a required object is missing
> Location: unavailable/
>
> where Location is an XML element.
>
> For debugging purpose I would like to marshall the object to XML without validation so that I can see how the element is missing, is it possible?
>
> thanks
>
> Antoine Brun