Specifying elements as nillable in the xsd means that you include them
with xsi:nil='"true".  So you're getting what you asked for.

If you don't want the value to be included at all, just specify
minOccurs="0" in the xsd, and don't set a value for it at all.

-- Mark

On Fri, 2005-08-05 at 17:34 +0100, Sorin Slavescu wrote:
> Hi people, 
> 
> I just started using XmlBeans, migrating from JAXB by the way, and I
> have a problem with null elements. What I need to know is how can I
> make so that the elements that are null, and specified nillable in my
> xsd, are not written in the file at all. At the moment it is writing
> the element with xsi:nil="true" attribute.
> 
> Thanks for help.
> 
> 
>                                    
> ______________________________________________________________________
> 
> Privileged, confidential and/or copyright information may be contained
> in this e-mail. This e-mail is for the use only of the intended
> addressee. If you are not the intended addressee, or the person
> responsible for delivering it to the intended addressee, you may not
> copy, forward, disclose or otherwise use it or any part of it in any
> way whatsoever. To do so is prohibited and may be unlawful.
> 
>  
> 
> If you receive this e-mail by mistake please advise the sender
> immediately by using the reply facility in your e-mail software.
> 
>  
> 
> Original Solutions Ltd. may monitor the content of e-mails sent and
> received via its network for the purposes of ensuring compliance with
> its policies and procedures.
> 
>  
> 
> This message is subject to and does not create or vary any contractual
> relationship between Original Solutions and you.
> 
>                                    
> ______________________________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to