Are you doing any version-dependent actions, or just checking for one of three versions? If not, then yes, I'd say take the namespace requirement out.<br><br>Roger<br>--<br><br><div class="gmail_quote">On Tue, May 19, 2009 at 4:30 PM, Mateusz Loskot <span dir="ltr"><<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Would it make sense to relax a bit the KML driver here [1] so it<br>
accepts <kml> root without xmlns attribute?<br>
<br>
One user reported to me that he is not able to read this file [2]<br>
using OGR KML driver and I found this is because of missing xmlns in<br>
<kml> root element. The KML was produced by some unknown<br>
software shipped with some GPS logger.<br>
<br>
I'm wondering if there are more KML generators in use that<br>
produce <kml> element without xmlns attribute.<br>
<br>
<br>
[1]<br>
<a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/kml/kml.cpp#L268" target="_blank">http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/kml/kml.cpp#L268</a><br>
[2] <a href="http://mateusz.loskot.net/tmp/gdal/no-xmlns.kml" target="_blank">http://mateusz.loskot.net/tmp/gdal/no-xmlns.kml</a><br>
<br>
Best regards,<br>
<font color="#888888">--<br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
Charter Member of OSGeo, <a href="http://osgeo.org" target="_blank">http://osgeo.org</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br>