svn path=/trunk/mcs/; revision=26405
+2004-04-29 Lluis Sanchez Gual <lluis@ximian.com>
+
+ * NewMonoXSD.cs: Import elements in the order they are declared in the schema.
+
2004-04-26 Atsushi Enomoto <atsushi@ximian.com>
* NewMonoXSD.cs : Enabled /d option (typed dataset generation support
{\r
foreach (XmlSchema schema in schemas) {\r
if (!schema.IsCompiled) schema.Compile (null);\r
- foreach (XmlSchemaElement elem in schema.Elements.Values)\r
- qnames.Add (elem.QualifiedName);\r
+ foreach (XmlSchemaObject ob in schema.Items)\r
+ if (ob is XmlSchemaElement)\r
+ qnames.Add (((XmlSchemaElement)ob).QualifiedName);\r
}\r
}\r
\r