Work is ongoing to incorporate GML read and write support in
OGR. Currently simple export (without
producing a schema document) is supported as well as import of some GML files
if Xerces-C is configured into OGR. The code lives at
gdal/ogr/ogrsf_frmts/gml within the GDAL/OGR source tree.
Some GML resources: