Don't bother trying to strip namespaces from OSM files as they don't have them
authorTom Hughes <tom@compton.nu>
Thu, 2 Dec 2010 21:14:42 +0000 (21:14 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 2 Dec 2010 21:14:42 +0000 (21:14 +0000)
net/systemeD/potlatch2/utils/OsmImporter.as

index 7876a26..4bb305f 100644 (file)
@@ -12,10 +12,7 @@ package net.systemeD.potlatch2.utils {
                }
 
                override protected function doImport():void {
-                       var xmlnsPattern:RegExp = new RegExp("xmlns[^\"]*\"[^\"]*\"", "gi");
-                       var xsiPattern:RegExp = new RegExp("xsi[^\"]*\"[^\"]*\"", "gi");
-                       files[0] = String(files[0]).replace(xmlnsPattern, "").replace(xsiPattern, "");
-                       var map:XML=new XML(files[0]);
+                       var map:XML = new XML(files[0]);
                        var data:XML;
                        
             var oldid:Number;