[Mono-bugs] [Bug 63507][Wis] New - Bug in property XmlTextReader.LinePosition

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 19 Aug 2004 19:45:16 -0400 (EDT)


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 borsanza@yahoo.es.

http://bugzilla.ximian.com/show_bug.cgi?id=63507

--- shadow/63507	2004-08-19 19:45:16.000000000 -0400
+++ shadow/63507.tmp.15359	2004-08-19 19:45:16.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 63507
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: borsanza@yahoo.es               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bug in property XmlTextReader.LinePosition
+
+Description of Problem:
+
+The value of XmlTextReader.LinePosition in mono is different to Visual Studio.
+
+
+Steps to reproduce the problem:
+
+  System.Xml.XmlTextReader aux;
+  aux = new XmlTextReader(new
+StringReader("<all><hello></hello><bug></bug></all>"));
+  Console.WriteLine("{0} {1}", aux.LineNumber, aux.LinePosition);
+  aux.MoveToContent();
+  Console.WriteLine("{0} {1}", aux.LineNumber, aux.LinePosition);
+  aux.Read();
+  Console.WriteLine("{0} {1}", aux.LineNumber, aux.LinePosition);
+  aux.ReadOuterXml();
+  Console.WriteLine("{0} {1}", aux.LineNumber, aux.LinePosition);
+  aux.ReadInnerXml();
+  Console.WriteLine("{0} {1}", aux.LineNumber, aux.LinePosition);
+  aux.Read();
+  Console.WriteLine("{0} {1}", aux.LineNumber, aux.LinePosition);
+  aux.Close();
+  Console.WriteLine("{0} {1}", aux.LineNumber, aux.LinePosition);
+
+Actual Results:
+
+0 0
+1 0
+1 5
+1 20
+1 31
+1 37
+0 0
+
+
+Expected Results:
+
+0 0
+1 2
+1 7
+1 22
+1 34
+1 38
+0 0