private static void CleanupSimpleType(XmlSchemaSimpleType simpleType) { simpleType.ElementDecl = null; }