def extract_three_floats(elem):
    """ Return three floats extracted from the text of the element. """
    try:
        vals = elem.text.split()
        if len(vals) == 3:
            float_vals = [float(x) for x in vals]
            if len(float_vals) == 3:
                return float_vals
    except:
        print("There was an error parsing CDL values")
        raise
    return None