[Mono-bugs] [Bug 77927][Wis] Changed - XmlTextReader: ReadOuterXml leaves reader at wrong position

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 26 17:55:00 EST 2006


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 rodolfo.campero at gmail.com.

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

--- shadow/77927	2006-03-26 17:24:22.000000000 -0500
+++ shadow/77927.tmp.27525	2006-03-26 17:55:00.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 77927
 Product: Mono: Class Libraries
 Version: 1.0
-OS: 
+OS: unknown
 OS Details: Linux 2.6.12-1-k7 #1 i686 GNU/Linux
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: Sys.XML
 AssignedTo: atsushi at ximian.com                            
 ReportedBy: rodolfo.campero at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -64,6 +64,28 @@
 </test>
 
 ------- Additional Comments From rodolfo.campero at gmail.com  2006-03-26 17:24 -------
 Created an attachment (id=16680)
 Sample C# program and XML file
 
+
+------- Additional Comments From rodolfo.campero at gmail.com  2006-03-26 17:54 -------
+The method ReadOuterXml must be called... sorry.
+Removing the comment on the line.
+
+8<------------------------------ TestXmlReader.cs
+using System;
+using System.Xml;
+
+class TestClass
+{
+        static void Main(string[] args)
+        {
+                XmlReader reader = new XmlTextReader("testreader.xml");
+                while(reader.LocalName != "element") reader.Read();
+                Console.WriteLine(reader.ReadOuterXml());
+                bool ok = reader.LocalName == "element" &&
+reader.GetAttribute("order") == "2";
+                Console.WriteLine( ok ? "OK" : "FAILED" );
+        }
+}
+


More information about the mono-bugs mailing list