Do not use magic numbers for indicating absence of altitude.
Moreover, if no altitude, you need not add it to xml itself.