users@jaxb.java.net

Re: JAXB and attribut error messages

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 16 Jun 2003 07:49:32 -0700

> Is is possbile to validate single attributes without encapsulating them in complex-types?

I can't think of any real nice way to do this, but if you are
interested in doing that for just a few attributes, then you might want
to use XSDLib or JDK1.4 regexp package, etc..


> alternativly, is there a way to obtain the attribute which fails so that
> we can implement our own error messages?

We are trying to provide this sort of information, but I'm afraid you
can't do that with the current release.

--
Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>