def determine_file_type(self, name):
        for type_key, type_name, type_test in self.filetypes:
            if type_test(name):
                return type_key
        return self.filetypes[-1][0]
Converts an XML string into a ProfileEntry object.
dataset/ETHPy150Open feincms/feincms/feincms/module/medialibrary/models.py/MediaFileBase.determine_file_type--crossover with--dataset/ETHPy150Open twilio/howtos/intercom/gdata/contacts/data.py/ProfileEntryFromString