users@jaxb.java.net

Re: how to ignore an error during partial unmarshalling

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 27 Sep 2004 12:01:29 -0400

Gagan_Bhatnagar_at_i2.com wrote:
> Specifically, in certain fields in my XML a string value appears where an
> integer is defined in the schema. On receiving errors on these elements I ignore
> the error and return true in my ValidationEventHandler implementation. However,
> I get an UnmarshalException because endElement event on the same element throws
> the exception below.

Recovering from errors is often tricky, and there may very well be bugs.

If you could file a bug and attach schemas / test code and what now,
that would be really helpful.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net