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?

And additional spice is that in WCS 1.1.0 ServiceIdentification is in namespace http://www.opengis.net/wcs/1.1/ows. :)

Ari


Even Rouault kirjoitti 24.10.2017 klo 12:45:

> Is there any reason not to switch to libxml2 from minixml?

>

> I see only GMLAS driver uses libxml2 currently

Ah, yes indirectly when it validates the data/gmlasconf.xml file against data/gmlasconf.xsd, since CPLValidateXML() uses libxml2 underneath to do that (it could actually have an alternate implementation using Xerces-C validation functionnalities.)

> , and maybe OGR VRT.

Same thing, OGR VRT, optionnaly, uses libxml2 to validate the .vrt file against its schema.

But minixml functionnality should be enough for WCS purposes, and libxml2 and Xerces-C remain optional dependencies.

Even

--

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