users@jaxb.java.net

xsi:nil

From: Vallamshettla, Anand <Anand.Vallamshettla_at_tgslc.org>
Date: Mon, 14 Feb 2005 17:49:41 -0600

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???)

 

It is kind of critical to our system as "not having a tag" vs "nil true"
have different meaning. If the sender didn't send a tag, then data in
our system should be left intact; otherwise if they send "nil" - then
system should wipeout existing data for that tag.

 

Thanks,

Anand Vallamshettla