You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Damon Rand <da...@cybermagic.co.nz> on 2004/07/02 00:28:33 UTC

Re: Problem with xsi:nil in 1.0.2

Ok, cool. I am still running binary v1.0.2 at the moment but I'll check out
the src and try again..

Cheers,
Damon.

----- Original Message ----- 
From: "Eric Vasilik" <er...@bea.com>
To: <xm...@xml.apache.org>
Sent: Monday, June 28, 2004 5:46 PM
Subject: RE: Problem with xsi:nil in 1.0.2


Radu and I looked into this a bit and discovered a bug in the
synchronization code between the store and XmlObject.  This should fix
some of your problems, but we think there are some more issues.  We'll
keep you posted.

- Eric

> -----Original Message-----
> From: Damon Rand [mailto:damon@cybermagic.co.nz]
> Sent: Monday, June 28, 2004 1:18 AM
> To: xmlbeans-user@xml.apache.org
> Subject: Re: Problem with xsi:nil in 1.0.2
>
> Hi,
>     Sorry for the late reply.. Yes, I will write this up and try and
file
> it
> in JIRA.. In the meantime I am going to try working around it by going
to
> the DOM interface and removing the attribute manually everytime I call
> .setXXX("something"). Not very nice but I need to use xsi:nil because
I
> need
> to be able to tell the difference between an empty string and a null
value
> for a field in my database.
>
> Damon.
>
>
> ----- Original Message -----
> From: "Radu Preotiuc-Pietro" <ra...@bea.com>
> To: <xm...@xml.apache.org>
> Sent: Friday, June 25, 2004 5:10 AM
> Subject: RE: Problem with xsi:nil in 1.0.2
>
>
> I too think that this area of functionality is unfortunately broken
and
> needs fixing.
> Calling .setXXX(null) or .setNilXXX() have the same effect, which is
> adding
> an "xsi:nil='true'" attribute, but they leave the old text unchanged.
On
> the
> other hand, calling .setXXX("something") does change the value, but
does
> not
> remove the "xsi:nil='true'". In the end, the resulting document is not
> valid
> in any of these cases.
> We'll have to log a JIRA issue, Damon, do you want to do it?
>
> Radu
>
> -----Original Message-----
> From: Damon Rand [mailto:Damon@cybermagic.co.nz]
> Sent: Friday, June 18, 2004 10:23 AM
> To: xmlbeans-user@xml.apache.org
> Subject: Problem with xsi:nil in 1.0.2
>
>
> Hi folks,
>   I am new to xmlbeans so my apologies if I have missed the answer to
this
> in the docs..
>
> I want to represent the fact that an element may not yet have a value
even
> though the element itself is mandatory. For this I am using
> xsi:nil="true".
> This raises some problems.
>
>  - There is a setNil method but no unsetNil method.
>  - When I call setStringValue() I expect the xsi:nil="true" to be
removed
> or
> set to false otherwise the document won't validate.
>
> Am I missing something?
>
> Regards,
> Damon.
>
>
> -
---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
>
>
> -
---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
>
>
>
> -
---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/



- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/