Author: atsushi
Date: 2006-11-09 03:38:08 -0500 (Thu, 09 Nov 2006)
New Revision: 67578

Modified:
   trunk/mcs/tools/mono-xsd/ChangeLog
   trunk/mcs/tools/mono-xsd/NewMonoXSD.cs
Log:
2006-11-09  Atsushi Enomoto <[EMAIL PROTECTED]>

        * NewMonoXSD.cs : process all elements including imported ones. To do
          so, use post-compilation schema items.



Modified: trunk/mcs/tools/mono-xsd/ChangeLog
===================================================================
--- trunk/mcs/tools/mono-xsd/ChangeLog  2006-11-09 08:20:43 UTC (rev 67577)
+++ trunk/mcs/tools/mono-xsd/ChangeLog  2006-11-09 08:38:08 UTC (rev 67578)
@@ -1,3 +1,8 @@
+2006-11-09  Atsushi Enomoto <[EMAIL PROTECTED]>
+
+       * NewMonoXSD.cs : process all elements including imported ones. To do
+         so, use post-compilation schema items.
+
 2004-07-12  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * NewMonoXSD.cs: Don't write the exception trace for common parameter

Modified: trunk/mcs/tools/mono-xsd/NewMonoXSD.cs
===================================================================
--- trunk/mcs/tools/mono-xsd/NewMonoXSD.cs      2006-11-09 08:20:43 UTC (rev 
67577)
+++ trunk/mcs/tools/mono-xsd/NewMonoXSD.cs      2006-11-09 08:38:08 UTC (rev 
67578)
@@ -403,9 +403,9 @@
                        {
                                foreach (XmlSchema schema in schemas) {
                                        if (!schema.IsCompiled) schema.Compile 
(null);
-                                       foreach (XmlSchemaObject ob in 
schema.Items)
-                                               if (ob is XmlSchemaElement)
-                                                       qnames.Add 
(((XmlSchemaElement)ob).QualifiedName);
+                                       foreach (XmlSchemaElement el in 
schema.Elements.Values)
+                                               if (!qnames.Contains 
(el.QualifiedName))
+                                                       qnames.Add 
(el.QualifiedName);
                                }
                        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to