You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Irv Salisbury <ir...@gmail.com> on 2005/06/06 21:15:53 UTC
Null value not getting propogated?
We are setting a value to null like:
updateHistory( String s ){
myXmlBean.setSomeValue( s );
}
If I then do a:
String s = myXmlBean.getSomeValue();
It returns null. However, when I serialize this to a SAX output
stream, if there was a value in there before, it shows up in the
serialized output. It seems like if you set the value to null, the
element is not cleared out. Am I doing something wrong here? To get
around this, I have to:
if( s == null ){
myXmlBean.setSomeValue( "" );
}
This "clears" out the xml bean.
Any help is appreciated. We did also try calling setNil, etc.
Thanks,
Irv
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org