A somewhat proper GPX parser

in that it actually parses XML instead of just pulling text out
with regular expressions.