in reply to How to modify KML files

From what I can tell it's just an XML format. I came across this icons have a default HotSpot orientation specified so the client knows where to place the icon with respect to the coordinates on the map. Google Earth/Maps Icons Is this what your trying to do? that wasn't what you are doing.

screenoverlay

Replies are listed 'Best First'.
Re^2: How to modify KML files
by Anonymous Monk on Jun 01, 2016 at 12:39 UTC

    Thanks for your time.

    I would like to include the <ScreenOverlay> tag in the XML of the first KML file and then save everything into a single KML file (by the way I used $document->archive, but it should be $document->render, otherwise the document is compressed, as in KMZ files).

    I read back the first KML with XML::Simple, but then I don't know how to insert in such structure the <ScreenOverlay> tag and save everything in KML format.