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