Jump to content

BUG: PQ creates invalid GPX/XML


RCH65

Recommended Posts

The PQ generator creates an invalid XML if there are Special characters (below X'20' ?) somewhere in the cache description. I don't know how they get into the listing, probably the owner used Copy&Paste. Example: GC4N77D

 

This results in the following invalid data:

 

<name>GC4N77D</name>

<desc>déjà vu's „das war der Anfang“ #1 by dejavue7, Traditional Cache (1.5/3)</desc>

<url>http://www.geocaching.com/seek/cache_details.aspx?guid=0e532090-104c-4e07-a501-c05ad8538a07</url>

<urlname>déjà vu's „das war der Anfang“ #1</urlname>

..snip...

 

Many (Garmin) GPSr stop importing caches at this point with the result, that you have just a partial Import.

Even a full-blown XML Reader on a Windows system refuses to import this file.

 

PS: After removing the red marked data, everything works as expected...

Edited by RCH65
Link to comment

The PQ generator creates an invalid XML if there are Special characters (below X'20' ?) somewhere in the cache description. I don't know how they get into the listing, probably the owner used Copy&Paste. Example: GC4N77D

 

This results in the following invalid data:

 

<name>GC4N77D</name>

<desc>déjà vu's „das war der Anfang“ #1 by dejavue7, Traditional Cache (1.5/3)</desc>

<url>http://www.geocaching.com/seek/cache_details.aspx?guid=0e532090-104c-4e07-a501-c05ad8538a07</url>

<urlname>déjà vu's „das war der Anfang“ #1</urlname>

..snip...

 

Many (Garmin) GPSr stop importing caches at this point with the result, that you have just a partial Import.

Even a full-blown XML Reader on a Windows system refuses to import this file.

 

PS: After removing the red marked data, everything works as expected...

 

Thanks for the info in red, I'd seen the error but never been sufficiently interested to dig into it any deeper. Maybe a simple code parser could try and open the file as an XML document and, if it failed, open it as a text file and do an automated removal of anything from through followed by opening the remaining text as an XML document.

Link to comment

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...
×
×
  • Create New...