id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 2858,"ogr2ogr, shp > KML: schema validation fails",peifer,condit,"{{{ $ ogr2ogr --version GDAL 1.6.0, released 2008/12/04 $ ogr2ogr -f KML -t_srs EPSG:4326 -fid 0 test0.kml RBD_F1v3.shp $ iconv -f ISO-8859-1 -t UTF-8 test0.kml > t1 && mv t1 test0.kml $ xmllint --noout --schema http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd test0.kml test0.kml:4: element Schema: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Schema': This element is not expected. Expected is one of ( {http://www.opengis.net/kml/2.2}visibility, {http://www.opengis.net/kml/2.2}open, {http://www.w3.org/2005/Atom}author, {http://www.w3.org/2005/Atom}link, {http://www.opengis.net/kml/2.2}address, {urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}AddressDetails, {http://www.opengis.net/kml/2.2}phoneNumber, {http://www.opengis.net/kml/2.2}Snippet, {http://www.opengis.net/kml/2.2}snippet, {http://www.opengis.net/kml/2.2}description ). test0.kml fails to validate }}} OK. I fixed this one by putting the Folder element in the right place, see attached. But then I ended up with: {{{ $ xmllint --noout --schema http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd test0.kml test0.kml:67: element Style: Schemas validity error : Element '{http://www.opengis.net/kml/2.2}Style': This element is not expected. test0.kml fails to validate }}} Am I doing something wrong here, or why does the KML file not validate against ogckml22.xsd ? Hermann",defect,closed,normal,,OGR_SF,1.6.0,normal,fixed,KML,warmerdam