parse gpx file or string