Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Can't figure out why this GPX-file doesn't validate...

From: "TopoGrafix" <google@----------.--->
To: NULL
Date: 8/3/2005 4:42:00 AM
Rinus Luijmes wrote:
> I'm collection GPS-waypoints in the GPX-format (http://www.topografix.com/gpx.asp) which is XML.
> This example file validates in XMLSpy:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <gpx xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" creator="XMLSpy 2005" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" xmlns="http://www.topografix.com/GPX/1/1">
> <wpt lat="-16.81233333" lon="-67.84916667">
> 		<name>HAYRA</name>
> 		<desc>Cerro Hayra Kkollu</desc>
> </wpt>
> </gpx>
>
> In the documentation of the GPX-format I found that one can add an elevation-value <ele>...</ele> to the waypoint (see: http://www.topografix.com/GPX/1/1/index.htm#type_wptType), but when I do, like so:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <gpx xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" creator="XMLSpy 2005" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" xmlns="http://www.topografix.com/GPX/1/1">
> <wpt lat="-16.81233333" lon="-67.84916667">
> 	<name>HAYRA</name>
> 	<desc>Cerro Hayra Kkollu</desc>
> 	<ele>3704</ele>
> </wpt>
> </gpx>
>
> It doesn't validate! XMLSpy gives this error: "Unexpected element 'ele' in element 'wpt'. Expected: src,
> link,sym, type, fix, sat, hdop, vdop, pdop, ageofdgpsdata, dgpsid, extensions". I can't figure out what
> is wrong here, maybe you gurus know what is wrong here??

The elements are in the wrong order.  Follow the order listed in the
documentation and schema, ie, <ele> comes before <name> and <desc>.

For further help, join the GPX developers forum (link at
http://www.topografix.com/gpx.asp)

--
Dan Foster
TopoGrafix



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent