[gdal-dev] Preferred XML parser
even.rouault at mines-paris.org
Fri Jan 10 01:22:45 PST 2014
We have a variety of XML parsers used :
- the built-in CPLMiniXML parser (port/cpl_minixml.h) that is a simple DOM
parser without any fancy feature (it doesn't have explicit support for encodings
for example. If you've need for recoding, you'll have to do it explicitely with
CPLRecode() API) but that works well and is used for parsing PAM .aux.xml, .vrt
- Expat for SAX parsing in quite a lot of OGR drivers : GPX, GeoRSS, GML, XLSX,
- Xerces used in GML (GML can use Expat or Xerces), its derived driver NAS and
in the existing Interlis driver as you mentionned.
> I'm going to implement some more XML parsing in the Interlis driver.
> Which XML parser is generally suggested for using in OGR? For Interlis 2,
> we've implemented a SAX parser with Xerces, but for this part, only DOM
> is needed.
> Pirmin Kalberer
> Sourcepole - Linux & Open Source Solutions
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
More information about the gdal-dev