Page 1 of 1

XML Validation

Posted: 09 July 08 11:26 am
by Team Red Roo
I use Gsak (version 7.2.3.21) as my Geocaching database, and load PQ's from gc.com as well as .gpx files from GCA.

Recently I have been getting this error "This file does not pass XML validation and will be ignored". The result is that Gsak ignores the file and I get no updates :cry: .

Before I ask this on the Gsak forum, has there been any change recently to the method that GCA uses to create .Gpx files recently that may have broken them?

Wayne

Posted: 09 July 08 12:17 pm
by caughtatwork
There was a thread at GC a while ago.
The tokens in the GPX file must be lowercase.
At one stage (and possibly still) GC were using capitals for the token GPX.
Check the GPX file you are having troubles with and see if any of the tokens are in caps.

Posted: 09 July 08 12:32 pm
by Team Red Roo
Sorry :oops:
I should have made myself clear. It's the GCA .Gpx files that I'm getting the error with. I have no problem with GC created PQ's

Posted: 09 July 08 12:45 pm
by CraigRat
I've done some random tests with a few GCA gpxs in 7.2.2.23 and they work...we might have a cache in your GPX file that's got some kind of invalid characters in it....

Would it be possible to send a copy of one of the offending GPX's to CraigRat@gmail.com?

Are these GPX files the c@w mailout ones or gpxs grabbed from links on the site?

Posted: 09 July 08 2:42 pm
by Team Red Roo
Thanks CraigRat - email sent :D

Posted: 09 July 08 4:10 pm
by CraigRat
There's some nasty word document cut and paste stuff going on, which breaks the gpx.

I'll discuss with the other Developers as to how we can fix.

Posted: 09 July 08 6:03 pm
by caughtatwork
It's been fixed.

As CR says, there's some spurious 'start of header' code getting into the description, probably from MS Word (evil, program that is).

I've made a fix that will strip it before it gets to the database as well as stripping from any existing caches.

TRR, if you can have another download of the WA.GPX file, it should all work now.

Please let us know.

Posted: 09 July 08 11:23 pm
by Team Red Roo
All seems to be working well now - thanks for your efforts. :D :D

Posted: 09 July 08 11:40 pm
by caughtatwork
Happy to hear that all is well.
Thanks for letting us know.

Posted: 10 July 08 12:07 am
by Team Red Roo
I would have mentioned it earlier, but I've been out doin' what comes :twisted: deviously :twisted: