[Mono-bugs] [Bug 508296] New: Appending XML Attributes which have associtate DTD throws XMLException ("ID value already exists in this document") .NET difference

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 29 13:28:38 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=508296


           Summary: Appending XML Attributes which have associtate DTD
                    throws XMLException ("ID value already exists in this
                    document")  .NET difference
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86
        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=295271)
 --> (http://bugzilla.novell.com/attachment.cgi?id=295271)
Test case showing bug with Attributes.Append

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10)
Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10

Given comment in XmlAttributesCollection.AdjustIdenticalAttributes this is
probably something that is already known about - but couldn't find existing bug
entry.

Attaching test case showing bug.

Also adding associated dtd which is needed to run test case.

Reproducible: Always

Steps to Reproduce:
1. Compile Test case
2. Place dtd file named mydtd.dtd next to executable.
3. Run test case
Actual Results:  
count = 1

Unhandled Exception: System.Xml.XmlException: ID value id already exists in
this document.
  at System.Xml.XmlAttributeCollection.AdjustIdenticalAttributes
(System.Xml.XmlAttribute node, System.Xml.XmlNode existing) [0x000ea] in
/home/hindlet/src/monosvn/mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs:346 
  at System.Xml.XmlAttributeCollection.SetNamedItem (System.Xml.XmlNode node)
[0x00073] in
/home/hindlet/src/monosvn/mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs:267 
  at System.Xml.XmlAttributeCollection.Append (System.Xml.XmlAttribute node)
[0x00000] in
/home/hindlet/src/monosvn/mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs:107 
  at Test.Program.Main (System.String[] args) [0x0004e] in
/home/hindlet/XmlSelectNodesTest/XmlSelectNodesTest/Main.cs:20 


Expected Results:  
count = 1
count = 1

-- 
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