'Return the value of the <error> element as a float.'

def get_error(self):

    p = self._get_sub_text('error')
    if (not p):
        return None
    else:
        try:
            return float(p)
        except ValueError:
            return None
