[Mono-bugs] [Bug 52576][Nor] Changed - Depth for attribute values in XmlNodeReader is too small
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 10 Jan 2004 10:53:53 -0500 (EST)
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 atsushi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=52576
--- shadow/52576 2004-01-03 10:52:54.000000000 -0500
+++ shadow/52576.tmp.30982 2004-01-10 10:53:53.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 52576
Product: Mono/Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: System.XML
AssignedTo: mono-bugs@ximian.com
ReportedBy: roland.flury@epfl.ch
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -42,6 +42,33 @@
Always
Additional Information:
- Microsoft .NET produces expected result
- The quoted text above originates from a 'Note' for the
ReadAttributeValue() method.
+
+------- Additional Comments From atsushi@ximian.com 2004-01-10 10:53 -------
+Which version of mcs wre you using?
+
+At least this code gave the expected results for me:
+
+-------- [xnr.cs ]--------
+using System;
+using System.Xml;
+
+public class Test
+{
+ public static void Main ()
+ {
+ XmlDocument doc = new XmlDocument ();
+ doc.LoadXml ("<B U='G'/>");
+ XmlNodeReader xnr = new XmlNodeReader (doc);
+ xnr.Read ();
+ Console.WriteLine (xnr.Depth);
+ xnr.MoveToFirstAttribute ();
+ Console.WriteLine (xnr.Depth);
+ }
+}
+
+mono xnr.exe
+0
+1