views:

14

answers:

0

I need to find all types in a given SchemaSet.

What I do today is:

1) Iterate all XmlSchemaTypes in SchemaSet.GlobalTypes.Values.

2) Iterate all values of XmlTypeCode enum

I find this as insufficient because some XmlSchemaTypes can be defined in the depth of the schema(i.e not as a GlobalType).

Is there a way in .NET I can get all the types that are not defined as GlobalTypes?