You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Xan Gregg <xa...@tibco.com> on 2001/06/28 14:42:23 UTC

crimson remove attr bug?

I'm having problems removing and re-adding attributes in Crimson. If I
remove an attribute and then add it to the same element, I get an
INUSE_ATTRIBUTE_ERR exception.  

I think the problem is that the ownerElement field of the attribute is not
cleared on the remove operation.

Is that behavior intentional or is it a bug?

xan



---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Re: crimson remove attr bug?

Posted by Edwin Goei <ed...@sun.com>.
Xan Gregg wrote:
> 
> I'm having problems removing and re-adding attributes in Crimson. If I
> remove an attribute and then add it to the same element, I get an
> INUSE_ATTRIBUTE_ERR exception.
> 
> I think the problem is that the ownerElement field of the attribute is not
> cleared on the remove operation.
> 
> Is that behavior intentional or is it a bug?

Could very well be a bug.  Could you provide a simple test program?

-Edwin

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org