[Mono-bugs] [Bug 62061][Cri] New - The DataSet.ReadXml doesn't work. The result is one table with one useless row now matter what the input was.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 28 Jul 2004 15:18:55 -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 ocoolio@hotmail.com.

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

--- shadow/62061	2004-07-28 15:18:55.000000000 -0400
+++ shadow/62061.tmp.13538	2004-07-28 15:18:55.000000000 -0400
@@ -0,0 +1,70 @@
+Bug#: 62061
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Mandrake 9.1
+OS Details: Fails on Mandrake linux 10, Mono 1.0
+Status: NEW   
+Resolution: 
+Severity: 004 Four hours
+Priority: Critical
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ocoolio@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The DataSet.ReadXml doesn't work. The result is one table with one useless row now matter what the input was.
+
+Description of Problem:
+To read an XML file from hard disk, one got to use the DataSet.ReadXml()
+method, which accepts filename as string or a stream.
+No matter what I do, I cannot get back the proper DataSet (Untyped, in case
+its important).
+Im unsure its important at all, but this was a result with ASP.NET using
+XSP.EXE
+
+Steps to reproduce the problem:
+Try save an XML file (I posted the example at the end of this report)
+Then use:
+DataSet ds = new DataSet();
+ds.ReadXml( "whateverfilename" );
+
+Actual Results:
+On .NET FW 1.1, the DataSet gets filled. On linux/mono, I only find one row
+
+How often does this happen? 
+It always happens.
+
+Additional Information:
+The XML that causes the problem (named users.xml):
+
+<Users>
+    <Users>
+	<UserEmail>Rabbit</UserEmail>
+	<UserPassword>upload</UserPassword>
+	<SecZone>Admin</SecZone>
+	<Group>Rabbit</Group>
+    </Users>
+    <Users>
+	<UserEmail>Rabbit</UserEmail>
+	<UserPassword>upload</UserPassword>
+	<SecZone>Admin</SecZone>
+	<Group>Rabbit</Group>
+    </Users>
+
+    <Users>
+	<UserEmail>user</UserEmail>
+	<UserPassword>Rabbit</UserPassword>
+	<SecZone>User</SecZone>
+	<Group>Rabbit</Group>
+    </Users>
+
+    <Users>
+	<UserEmail>zuser</UserEmail>
+	<UserPassword>jelszo</UserPassword>
+	<SecZone>User</SecZone>
+	<Group>Solka</Group>
+    </Users>
+
+</Users>