The number `2` in the above line is a bit magic. I'd be tempted to use the string literal `'http://www.topografix.com/GPX/1/1'` here - it's only a few extra bytes and is more robust.