private void CleanupAttributeGroup(XmlSchemaAttributeGroup attributeGroup) {
CleanupAttributes(attributeGroup.Attributes);
attributeGroup.AttributeUses.Clear();
attributeGroup.AttributeWildcard = null;
if (attributeGroup.Redefined != null) {
CleanupAttributeGroup(attributeGroup.Redefined);
}
}