* NewMonoXSD.cs : process all elements including imported ones. To do
so, use post-compilation schema items.
svn path=/trunk/mcs/; revision=67578
+2006-11-09 Atsushi Enomoto <atsushi@ximian.com>
+
+ * NewMonoXSD.cs : process all elements including imported ones. To do
+ so, use post-compilation schema items.
+
2004-07-12 Lluis Sanchez Gual <lluis@novell.com>
* NewMonoXSD.cs: Don't write the exception trace for common parameter
{\r
foreach (XmlSchema schema in schemas) {\r
if (!schema.IsCompiled) schema.Compile (null);\r
- foreach (XmlSchemaObject ob in schema.Items)\r
- if (ob is XmlSchemaElement)\r
- qnames.Add (((XmlSchemaElement)ob).QualifiedName);\r
+ foreach (XmlSchemaElement el in schema.Elements.Values)\r
+ if (!qnames.Contains (el.QualifiedName))\r
+ qnames.Add (el.QualifiedName);\r
}\r
}\r
\r