You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Jacob Danner <ja...@bea.com> on 2005/09/07 01:10:09 UTC
RE: Nulls?
What happens when you don't set the value to null?
Also you may what to check out the schema for the element to see if the
value is required,
_____
From: Peter Luttrell [mailto:Peter_Luttrell@mgic.com]
Sent: Tuesday, September 06, 2005 9:08 AM
To: user@xmlbeans.apache.org
Subject: Nulls?
Is there any way to get xmlbeans go not generate an elements' attribute
when it's field value is set to null?
For example, if I execute the following code:
whateverElement.setWhateverField( null );
xmlbeans generates this xml attribute:
WhateverField=""
I'd much rather have it generate nothing.
-peter
--------------------------------------------------------------------- To
unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org For additional
commands, e-mail: user-help@xmlbeans.apache.org