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.

Roger
--

On Tue, May 19, 2009 at 4:30 PM, Mateusz Loskot <mate...@loskot.net> wrote:

> Hi,
>
> Would it make sense to relax a bit the KML driver here [1] so it
> accepts <kml> root without xmlns attribute?
>
> One user reported to me that he is not able to read this file [2]
> using OGR KML driver and I found this is because of missing xmlns in
> <kml> root element. The KML was produced by some unknown
> software shipped with some GPS logger.
>
> I'm wondering if there are more KML generators in use that
> produce <kml> element without xmlns attribute.
>
>
> [1]
>
> http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/kml/kml.cpp#L268
> [2] http://mateusz.loskot.net/tmp/gdal/no-xmlns.kml
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> Charter Member of OSGeo, http://osgeo.org
> _______________________________________________
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to