[Mono-bugs] [Bug 560946] Moving an XmlAttribute from one XmlElement to another throws System.ArgumentException: This attribute is already set to another element.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 11 03:05:41 EST 2009



Atsushi Enomoto <aenomoto at novell.com> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from Atsushi Enomoto <aenomoto at novell.com> 2009-12-11 08:05:39 UTC ---
This is *the* correct, standard conformant behavior as explicitly documented at
"setNamedItem" section in

<quote>INUSE_ATTRIBUTE_ERR: Raised if arg is an Attr that is already an
attribute of another Element object. The DOM user must explicitly clone Attr
nodes to re-use them in other elements.</quote>

XmlAttributeCollection.Add(), mentioned here, is just a wrapper for

You should report Microsoft to fix their bug instead.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list