private void Cleanup() {
foreach (XmlSchemaGroup group in this.schema.Groups.Values) {
CleanupGroup(group);
}
foreach (XmlSchemaAttributeGroup attributeGroup in this.schema.AttributeGroups.Values) {
CleanupAttributeGroup(attributeGroup);
}
foreach (XmlSchemaType type in this.schema.SchemaTypes.Values) {
if (type is XmlSchemaComplexType) {
CleanupComplexType((XmlSchemaComplexType)type);
}
else {
CleanupSimpleType((XmlSchemaSimpleType)type);
}
}
foreach (XmlSchemaElement element in this.schema.Elements.Values) {
CleanupElement(element);
}
foreach (XmlSchemaAttribute attribute in this.schema.Attributes.Values) {
CleanupAttribute(attribute);
}
}