[Mono-bugs] [Bug 78221][Nor] New - [PATCH] XmlSchemaImporter support for (root) simple types.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Apr 27 09:26:07 EDT 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 gert.driesen at pandora.be.

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

--- shadow/78221	2006-04-27 09:26:07.000000000 -0400
+++ shadow/78221.tmp.15125	2006-04-27 09:26:07.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 78221
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: lluis at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] XmlSchemaImporter support for (root) simple types.
+
+The attached patch introduces support for (root) simple types to 
+XmlSchemaImporter.
+
+It also fixes importing of flag enum values, and minor MS compatibity 
+changes.
+
+Don't let the size of the patch frighten you (lol): 90% of the patch are 
+additional unit tests!
+
+IMPORTANT:
+
+There's one small change in XmlSchemaImporter.CreateTypeMapping that I'm 
+not sure about. Can you double-check this one ? It is clearly marked in 
+the patch (you can't miss it ;-)).
+
+From the ChangeLog:
+
+* XmlTypeMapping.cs: Remove ctor without integral value as it is no
+longer used. Added ToEnum method for converting from constant name(s)
+to integral enum value.
+* XmlSchemaImporter.cs: Throw InvalidOperationException when element
+cannot be found. Added support for importing simple types. Cosmetic
+change to exception when type does not exist. If no type is set on
+XmlSchemaElement, then default to anyType to match MS. Default value
+for enum is whitespace-separated list of constant names, so replace
+comma's with blanks. For flag enums, make sure the underlying value is
+indeed a valid bit field.


More information about the mono-bugs mailing list