public static void ExtractAttributes( XmlSchemaComplexType cce,
Dictionary<string, XmlSchemaObject> xmlSchemaObjects)
{
if (cce != null)
{
XmlSchemaObjectCollection attributes = cce.Attributes;
LoadAttributes( xmlSchemaObjects, attributes );
if (cce.BaseXmlSchemaType != null)
{
var ccee = cce.BaseXmlSchemaType as XmlSchemaComplexType;
if (ccee != null)
{
ExtractAttributes( ccee, xmlSchemaObjects );
}
}
}
}