users@jaxb.java.net

optional attributes

From: Jorge Medina <Jorge_Medina_Ang_Collan_at_symantec.com>
Date: Thu, 20 May 2004 12:52:29 -0400

I have defined some entities with optional attributes with no default
value.

Lets assume the attribute is called YYY

I get the setYYY/getYYY methods on the generated interfaces.

a) Is there any way I could know if the attribute was in fact present in
the original document ?

b) Is there any way to "clear" the attribute so that it is not generated
to the xml document ?

Thanks.

-Jorge