organicmaps/data/test_data/gpx/export_test.gpx
cyber-toad 75e5cd9168 [gpx] Use cdata for name field in gpx export
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
2025-02-23 08:57:17 +03:00

57 lines
No EOL
2 KiB
XML

<?xml version="1.0"?>
<gpx version="1.1" creator="Organic Maps" xmlns="http://www.topografix.com/GPX/1/1"
xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3"
xmlns:gpx_style="http://www.topografix.com/GPX/gpx_style/0/2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 https://www.topografix.com/GPX/1/1/gpx.xsd http://www.topografix.com/GPX/gpx_style/0/2 https://www.topografix.com/GPX/gpx_style/0/2/gpx_style.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 https://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd">
<metadata>
<name><![CDATA[My route ><&"]]></name>
<desc><![CDATA[You will see this in the document and can use reserved characters like < > & "]]></desc>
</metadata>
<wpt lat="48.209846" lon="16.376023">
<name>Point 1</name>
<desc>Point 1</desc>
</wpt>
<wpt lat="48.209847" lon="16.376028">
<name><![CDATA[Point cdata name ><&"]]></name>
<desc><![CDATA[Point cdata desc ><&"]]></desc>
</wpt>
<trk>
<name>Some random route</name>
<extensions>
<gpxx:TrackExtension><gpxx:DisplayColor>Green</gpxx:DisplayColor></gpxx:TrackExtension>
<gpx_style:line><gpx_style:color>00FF00</gpx_style:color></gpx_style:line>
<xsi:gpx><color>#FF00FF00</color></xsi:gpx>
</extensions>
<trkseg>
<trkpt lat="48.209846" lon="16.376023">
<ele>123</ele>
<time>2010-10-30T10:11:14Z</time>
</trkpt>
<trkpt lat="48.209503" lon="16.381065">
<ele>456</ele>
<time>2010-10-30T10:11:15Z</time>
</trkpt>
</trkseg>
<trkseg>
<trkpt lat="48.209846" lon="16.376023">
<ele>123</ele>
</trkpt>
<trkpt lat="48.209503" lon="16.381065">
<ele>456</ele>
</trkpt>
</trkseg>
</trk>
<trk>
<name><![CDATA[Track cdata name ><&"]]></name>
<desc><![CDATA[Track cdata desc ><&"]]></desc>
<trkseg>
<trkpt lat="48.209846" lon="16.376023">
<ele>123</ele>
</trkpt>
<trkpt lat="48.209503" lon="16.381065">
<ele>456</ele>
</trkpt>
</trkseg>
</trk>
</gpx>