You can use ogr2ogr (a GDAL utility) to export a layer. It support many output formats including gml.<br>See <a href="http://www.gdal.org/ogr2ogr.html">http://www.gdal.org/ogr2ogr.html</a>.<br>