gpstrek - Allow GPX 1.0 to be parsed
parent
da9c60f4a2
commit
5a7fca1511
|
|
@ -15,6 +15,9 @@
|
||||||
function handleOnload(readerEvent){
|
function handleOnload(readerEvent){
|
||||||
var content = readerEvent.target.result;
|
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 xsltProcessor = new XSLTProcessor();
|
||||||
|
|
||||||
var myXMLHTTPRequest = new XMLHttpRequest();
|
var myXMLHTTPRequest = new XMLHttpRequest();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue