The root element shouldn't be prefixed, this is not XML valid. (checked using xmllint --noout --schema http://www.topografix.com/GPX/1/1/gpx.xsd mygpx.gpx)
This commit is contained in:
@@ -218,7 +218,7 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
write: function(features, metadata) {
|
write: function(features, metadata) {
|
||||||
features = OpenLayers.Util.isArray(features) ?
|
features = OpenLayers.Util.isArray(features) ?
|
||||||
features : [features];
|
features : [features];
|
||||||
var gpx = this.createElementNSPlus("gpx:gpx");
|
var gpx = this.createElementNS(this.namespaces.gpx, "gpx");
|
||||||
gpx.setAttribute("version", "1.1");
|
gpx.setAttribute("version", "1.1");
|
||||||
this.setAttributes(gpx, {
|
this.setAttributes(gpx, {
|
||||||
"xsi:schemaLocation": this.schemaLocation
|
"xsi:schemaLocation": this.schemaLocation
|
||||||
|
|||||||
Reference in New Issue
Block a user