Jump to content
Sign in to follow this  
Followers 4
Bananeweizen

Bug: Geotour GPX files are invalid

Recommended Posts

The script producing the Geotour GPX files is faulty. Those files are not syntactically correct XML files, and therefore fail to load on all devices using an actual XML parser instead of simple text pattern matching.

 

Example: Download https://www.geocaching.com/play/geotours/paderborner-land/gpx?geotourId=94 and verify it in any XML aware tool (even Notepad++ with the "XML Tools" plugin is sufficient). At least these 2 changes seem necessary to make the file correct XML:

Replace "xmlns:creator" by "creator"

Replace "xmlns:schemaLocation" by "xsi:schemaLocation"

 

As this is not the first time that GPX files from Groundspeak are invalid, you may want to consider adding unit tests to your script to verify that this is in fact valid XML.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  
Followers 4

×
×
  • Create New...