[Mono-bugs] [Bug 496022] New: Appending same XmlAttribute to XmlNode twice throws Exception .NET difference

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 17 12:05:57 EDT 2009


           Summary: Appending same XmlAttribute to XmlNode twice throws
                    Exception .NET difference
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=286526)
 --> (http://bugzilla.novell.com/attachment.cgi?id=286526)
Sample code showing problem calling Append twice with same attribute on xmlNode

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
Gecko/2009032711 Ubuntu/8.04 (hardy) Firefox/3.0.8

The following can't be done on .NET 

given: XmlNode n;
and: XmlAttribute a;


Reproducible: Always

Steps to Reproduce:
1. Compile and Run Sample Code
Actual Results:  
Unhandled Exception: System.ArgumentException: This attribute is already set to
another element.
  at System.Xml.XmlAttributeCollection.SetNamedItem (System.Xml.XmlNode node)
[0x00098] in
  at System.Xml.XmlAttributeCollection.Append (System.Xml.XmlAttribute node)
[0x00000] in

Expected Results:  
Test Program should run without throwing exception

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