You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Jinyuan Zhou <jz...@5square.com> on 2006/03/29 00:03:18 UTC

Nil element

Hi there,
When I call setCity(null) on the address object, xmlbeans  give me a
<S:City xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> 
Whic I don't want becuase the schema for the City element is not
nillable.  Being an optional elment, I expect xml will just give me a
normal empty element or not adding the City element. It looks like
xmlbeans by default treat a null argument as a nil elment on setters. Is
there method set***City which will ignore the the call when City is not
nillable and the passed value is null?
Thanks,