Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82776 --- shadow/82776 2007-09-10 05:22:29.000000000 -0400 +++ shadow/82776.tmp.25811 2007-09-10 05:22:29.000000000 -0400 @@ -0,0 +1,47 @@ +Bug#: 82776 +Product: Mono: Class Libraries +Version: 1.2 +OS: +OS Details: Fedora 7 +Status: NEW +Resolution: +Severity: +Priority: Major +Component: Sys.XML +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: XmlWriter.WriteNode() writes only first attribute when working with some SGMLReaders + +Description of Problem: +The current implementation of the XmlWriter.WriteNode to write all +attributes of an element seems error-prone. + +The enumeration of attributes using calls to reader.AttributeCount directly +in the 'for' loop is incorrect because the subsequence calls to this after +moving the attribute will return 0 + +Steps to reproduce the problem: +1. Prepare a XmlReader that returns 0 as AttributeCount when being +positioned at the attribute or attribute value +2. Open the reader with an input xml document that has at least one element +with multiple attributes +3. Use the XmlTextWriter or XmlWriter to write the reader out to a file + +Actual Results: +Only first attribute of the element is kept. Further ones omitted. + +Expected Results: +All attributes are kept + +How often does this happen? +Always + +Additional Information: +Should this be fixed by caching the count to variable before doing the +'for' loop? + +References: XmlWriter.cs, SVN head, line 493 - 499 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
