users@jaxb.java.net

Re: xsi:nil

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 14 Feb 2005 17:56:20 -0800

Vallamshettla, Anand wrote:
> JAXB seems to set a property value to ‘null’ in the following cases
>
>
>
> 1) <element xsi:nil=”true”></element> is in XML doc.
>
> 2) <elemtent> tag is not in the XML doc.
>
>
>
> Is there a way in JAXB 1.0 to differentiate those 2 cases? (May be some
> customization???)

I think this should work in 2.0 by using the JAXBElement class, but not
sure for 1.0.

You might try enabling the type substitution support, which changes the
binding somewhat, and it might allow you to do so.



-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com