This project has moved and is read-only. For the latest updates, please go here.

Saving kml from kmz

Oct 16, 2012 at 1:54 PM


if I load a kml-file from a kmz-file like

KmlFile kml = KmlFile.LoadFromKmz(kmzFile)

and save this kml-file with


i got a prefix (kml:) in every tag of the resulted kml-file. How can I avoid this behaviour?

Thanks in advance


Oct 17, 2012 at 9:31 PM

It shouldn't matter where the KML came from - KmlFile shouldn't save every element with a kml tag.

Have you had a look at the Kml file it's extracting from the kmz archive? A kmz archive is just a zip archive so you can either open it with an application like 7zip or change the extension to .zip and it will open with your operating system. Check the kml file inside and verify that the namespace is

If you have difficulties (and you can share the archive) then please can you create a work item and attach the archive to it so I can take a look?