def convert(attribute_value):
        """
        Convert string to float or int were possible.

        :param attribute_value: string value
        :return: depend on re.match a string, a float or an int value.
        """
        if re.match(r"\d+\.\d+", attribute_value):
            return float(attribute_value)
        if re.match(r"\d+", attribute_value):
            return int(attribute_value)
        return attribute_value

        Convert string to float or int were possible.

        :param attribute_value: string value
        :return: depend on re.match a string, a float or an int value.
        
recipes/Python/578976_Objectify_of_a_XML_node/recipe-578976.py