1
0
Fork 0

gpstrek - Allow GPX 1.0 to be parsed

master
Martin Boonk 2023-07-14 18:34:51 +02:00
parent da9c60f4a2
commit 5a7fca1511
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@
function handleOnload(readerEvent){
var content = readerEvent.target.result;
// Replace the gpx version 1.0 with 1.1 to allow parsing older gpx files. The nodes referenced by the xsl exist in both versions.
content = content.replaceAll("http://www.topografix.com/GPX/1/0", "http://www.topografix.com/GPX/1/1");
var xsltProcessor = new XSLTProcessor();
var myXMLHTTPRequest = new XMLHttpRequest();