On mardi 24 octobre 2017 17:07:51 CEST Ari Jolma wrote:
> Whoa! How hard can XML be? I have a real Capabilities document (from
> well known company) which defines *both* default and ows namespace to
> http://www.opengis.net/ows/2.0.
> 
> Thus, to be sure, I need to look for *both* ows:ServiceIdentification
> and ServiceIdentification. Or maybe loop through all elements and check
> for both at each element?

If there's no ambiguity with elements having same names in different 
namespaces, you can just strip namespace prefixes from elements with
CPLStripXMLNamespace(psRoot, NULL, true)

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to