Process GPX string into XML, convert to JSON, then process the JSON to create an array of lat/long/elevation points sorted by timestamp.