added "schemaLocation"

This commit is contained in:
y20k 2017-04-03 17:04:29 +02:00
parent 7b48e40c45
commit 8c06c8c3ae

View file

@ -50,7 +50,9 @@ public class GpxHelper {
// add header // add header
gpxString = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n" + gpxString = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n" +
"<gpx version=\"1.1\" creator=\"Transistor App (Android)\">\n"; "<gpx version=\"1.1\" creator=\"Transistor App (Android)\"\n" +
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
" xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd\">\n";
// add track // add track
gpxString = gpxString + addTrack(); gpxString = gpxString + addTrack();