Hi all.
I'm encountering the same problem explained in here:
http://www.mail-archive.com/[email protected]/msg00541.html
As soon as I call setFoo(null) on Bar the xml output looks like
<bar foo=""/>
If I leave the set out, it renders like this:
<bar/>
Since I'm copying several attributes from my domain model from/to the
xmlbeans I'm searching for a way to let xmlbeans handle set(null) as
unset. I would like to avoid the
if {bo.getFoo() != null) {
xb.setFoo(bo.getFoo());
}
construct for _every_ attribute. Always setting null to "" in xml is a
bit noisy for me.
Is there any way to achieve this? Perhaps something like XmlOptions or
similar?
Regards,
Veit
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]