Author Topic: GPX format error???  (Read 2106 times)

angela

  • Guest
GPX format error???
« on: 19-Sep-2005, 10:23:52 »
when I tried to load a gpx file into ExpertGPS it failed. I loaded the gpx file (XML format) into XMLspy and it reported the file was not valid xml. I removed the offending line:-

xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd

from the header and XMLspy reported it now valid. I saved the file and went back toExpertGPS but it still refused to load reporting a format error.

I ran the updated gpx file through GPSBabel to output gpx. Finally ExpertGPS accepted the file. It looks like there are formatting errors to your gpx output.

Over to you

Angela

You got YAWS yet
angela at activitae.com

jeff

  • Administrator
  • Registered User
  • *****
  • Posts: 174
    • View Profile
    • Jeff Goodenough's Pages
GPX format error???
« Reply #1 on: 19-Sep-2005, 10:32:33 »
Thanks for reporting this, Angela. The GPX format I generate is (or should be) identical to the format generated by MapSource when exporting.

I'll investigate further and report back here.

Meanwhile, it would be helpful if you could email me the final output you generated so that I can compare.

Regards,
Jeff.

jeff

  • Administrator
  • Registered User
  • *****
  • Posts: 174
    • View Profile
    • Jeff Goodenough's Pages
GPX format error???
« Reply #2 on: 19-Sep-2005, 12:30:52 »
The reason the line you quoted caused a validation error was that www.topografix.com was unreachable all this morning. It has just come back on line and that part now validates OK. This probably explains why you couldn't get the file to work.

However, XMLSpy now throws up a validation error on the second waypoint in the file, complaining about the repeated use of the schemaLocation attribute.

I will try removing these to see if the file then validates. However, it's still the same as the MapSource output, so maybe it's just XMLSpy being picky.

Jeff.

jeff

  • Administrator
  • Registered User
  • *****
  • Posts: 174
    • View Profile
    • Jeff Goodenough's Pages
Update
« Reply #3 on: 19-Sep-2005, 20:27:56 »
After removing the extra parameter, the file validates OK in XMLSpy. However, I tried loading the original file into both EasyGPS and ExpertGPS and it loads OK. I don't understand why you had problems with ExpertGPS.

I will still go ahead, though, and fix the output so it generates a valid XML file as per XMLSpy.

EDIT: the original problem was apparently caused by an old version of ExpertGPS (1.3.4) being used. Current version (1.3.7) is OK.

Jeff.