You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Ran <ra...@gmail.com> on 2007/01/09 06:31:59 UTC

Re: How to prevent xsi:nil="true" from being created

I m looking for the same solution as well, best i can do now is to put empty
string for null records.
Let me know if you found anything.
Thanks,
ran

On 1/8/07, Christopher.Mathrusse@sybase.com <
Christopher.Mathrusse@sybase.com> wrote:
>
>  I am creating a new XmlObject from the factory method. I'm adding the
> appropriate objects throughout the document but some of the elements are
> defined as optional per the schema. When I am done composing the document
> and I save/parse the document the optional elements are place into the
> document as follows:
> <ContactInformation xsi:nil="true" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"/<http://www.w3.org/2001/XMLSchema-instance%22/>
> >
>
> How do I eliminate these elements from appearing in the document?
>
> Thanks....
>
> Chris Mathrusse
> christopher.mathrusse@sybase.com
> (925) 236-5553
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org For additional
> commands, e-mail: user-help@xmlbeans.apache.org