Create Kml From Csv In Python


Answer :

You didn't answer the query above, but my guess is that the error is that you're not closing your output file (which would flush your output).



f.close()


use etree to create your file



http://docs.python.org/library/xml.etree.elementtree.html



It's included with Python and protects you from generating broken XML. (eg. because fname contained &, which has special meaning in XML.)



Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable