private void CleanupRedefine(XmlSchemaExternal include) { XmlSchemaRedefine rdef = include as XmlSchemaRedefine; rdef.AttributeGroups.Clear(); rdef.Groups.Clear(); rdef.SchemaTypes.Clear(); }