users@jaxb.java.net

Re: JAXB 2.0 default values

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 07 Sep 2005 15:55:48 -0700

Dmitri Colebatch wrote:
> I don't understand the logic behind this. Are you saying that if I have:
>
> <foo>
> <bar />
> </foo>
>
> where in the schema bar has a default value of "x" then
> foo.getBar().equals("x")? Yet if I have
>
> <foo />
>
> foo.getBar() is null?

Yup. Just one more reason to hate W3C XML Schema, if you ask me...


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com