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

def get_bearing(self):

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