[Mono-bugs] [Bug 52240][Blo] New - XML Serilaizer fails when DataSet name contains spaces
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 16 Dec 2003 10:40:38 -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 mordechait@mainsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=52240
--- shadow/52240 2003-12-16 10:40:37.000000000 -0500
+++ shadow/52240.tmp.2961 2003-12-16 10:40:37.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 52240
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mordechait@mainsoft.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XML Serilaizer fails when DataSet name contains spaces
+
+Description of Problem:
+When a web method returns a DataSet which has spaces in the name - the
+resulting is invalid XML.
+IIS handles such case with no problem - so this is a Mono bug.
+
+
+Steps to reproduce the problem:
+1. write the following method:
+ [WebMethod]
+ public DataSet GetEmptyDataSet()
+ {
+ DataSet d = new DataSet("this my data set name");
+ return d;
+ }
+2. Try to consume that web method using Visual Studio 2003
+3. Then print the resulting DataSet name.
+
+Actual Results:
+There is an error in XML document (13, 10).
+
+Expected Results:
+"this my data set name"
+
+
+How often does this happen?
+allways
+
+Additional Information:
+Attached the result of the Test Form.
+Pay attention to an invalid XML line (the line before the last line)
+
+<?xml version="1.0" encoding="utf-8"?>
+<DataSet xmlns="http://tempuri.org/">
+ <xsd:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+attributeFormDefault="qualified"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xs:element name="this my_data_set name" msdata:IsDataSet="true"
+msdata:Locale=""
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xs:choice maxOccurs="unbounded"
+xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
+ </xsd:complexType>
+ </xs:element>
+ </xsd:schema>
+ <this my data set name xmlns=""/>
+</DataSet>