[Mono-bugs] [Bug 57133][Nor] New - classes generated by Mono xsd.exe are not the same as MS xsd.exe
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 16 Apr 2004 08:23: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 paco@mfcon.com.
http://bugzilla.ximian.com/show_bug.cgi?id=57133
--- shadow/57133 2004-04-16 08:23:55.000000000 -0400
+++ shadow/57133.tmp.5137 2004-04-16 08:23:55.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 57133
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: lluis@ximian.com
+ReportedBy: paco@mfcon.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: classes generated by Mono xsd.exe are not the same as MS xsd.exe
+
+If I use Mono's xsd.exe to generate a *.cs file using /c option for the
+file:
+http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/prj2make-sharp/mfcon/cs/prj2make-sharp/schemas/sharp_d_prjx.xsd?rev=1.2&content-type=text/vnd.viewcvs-markup
+
+I have a problem with the classes generated that I don't have when I
+generate it using Microsoft xsd.exe. One of the differences that helps
+pinpoint the probem is that the code generated by Mono xsd.exe does not
+create the Class "References" as an array of of the type "Reference", were
+Microsoft xsd.exe seems to genereate the types the way I was expecting it.
+
+It appears that the difference may be in the use of attributes.
+
+For example:
+
+MS - /// <remarks/>
+ [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
+ public Reference[] References;
+
+Mono - /// <remarks/>
+ public References References;
+
+(further down is declared as:)
+ /// <remarks/>
+ public class References {
+
+ /// <remarks/>
+ [System.Xml.Serialization.XmlElement()]
+ public Reference[] Reference;
+ }
+
+
+The comand line used to generate the C# files was:
+MS - xsd sharp_d_prjx.xsd /c
+Mono - xsd sharp_d_prjx.xsd /c
+the same for both.