def get_element_from_list(attribute, search_string, element_list):
    """
    Get element by attribute and string.
    :param attribute: string of attribute type
    :param search_string: identifying string to look for
    :param element_list: element tree to look in
    :return: found element
    """
    for element in element_list:
        if search_string == element.get(attribute):
            return element
    return None