XML Validation

Discussion about the Geocaching Australia web site
Post Reply
User avatar
Team Red Roo
5500 or more caches found
5500 or more caches found
Posts: 375
Joined: 02 May 03 9:30 pm
Location: Armadale WA
Contact:

XML Validation

Post by Team Red Roo » 09 July 08 11:26 am

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

Online
User avatar
caughtatwork
Posts: 17016
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 09 July 08 12:17 pm

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.

User avatar
Team Red Roo
5500 or more caches found
5500 or more caches found
Posts: 375
Joined: 02 May 03 9:30 pm
Location: Armadale WA
Contact:

Post by Team Red Roo » 09 July 08 12:32 pm

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

User avatar
CraigRat
850 or more found!!!
850 or more found!!!
Posts: 7015
Joined: 23 August 04 3:17 pm
Twitter: CraigRat
Facebook: http://facebook.com/CraigRat
Location: Launceston, TAS
Contact:

Post by CraigRat » 09 July 08 12:45 pm

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?

User avatar
Team Red Roo
5500 or more caches found
5500 or more caches found
Posts: 375
Joined: 02 May 03 9:30 pm
Location: Armadale WA
Contact:

Post by Team Red Roo » 09 July 08 2:42 pm

Thanks CraigRat - email sent :D

User avatar
CraigRat
850 or more found!!!
850 or more found!!!
Posts: 7015
Joined: 23 August 04 3:17 pm
Twitter: CraigRat
Facebook: http://facebook.com/CraigRat
Location: Launceston, TAS
Contact:

Post by CraigRat » 09 July 08 4:10 pm

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.

Online
User avatar
caughtatwork
Posts: 17016
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 09 July 08 6:03 pm

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.

User avatar
Team Red Roo
5500 or more caches found
5500 or more caches found
Posts: 375
Joined: 02 May 03 9:30 pm
Location: Armadale WA
Contact:

Post by Team Red Roo » 09 July 08 11:23 pm

All seems to be working well now - thanks for your efforts. :D :D

Online
User avatar
caughtatwork
Posts: 17016
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 09 July 08 11:40 pm

Happy to hear that all is well.
Thanks for letting us know.

User avatar
Team Red Roo
5500 or more caches found
5500 or more caches found
Posts: 375
Joined: 02 May 03 9:30 pm
Location: Armadale WA
Contact:

Post by Team Red Roo » 10 July 08 12:07 am

I would have mentioned it earlier, but I've been out doin' what comes :twisted: deviously :twisted:

Post Reply