Lauren
I have done this using Delphi and it is basically simple
(conceptually) but required attention to detail.
What I did was to develop a kml file template of what I wanted
(searched web for an example
kml file and used it and the online kml reference).
I broke the template file into three parts:
(1) Header part containing all of the kml header information. In
my case this consisted of:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://earth.google.com/kml/2.2">
<Document>
<name><![CDATA[2009 China Tour]]></name>
<open>1</open>
<Snippet maxLines="2"></Snippet>
<description><![CDATA[2009 China Tour]]></description>
<Style id="FEATURES">
<IconStyle>
<color>FF699E00</color>
<scale>0.5</scale>
<Icon>
<href>root://icons/palette-4.png</href>
<x>0</x>
<y>0</y>
<w>255</w>
<h>255</h>
</Icon>
</IconStyle>
<LabelStyle>
<color>00FFFFFF</color>
</LabelStyle>
<BalloonStyle>
<text>
</text>
</BalloonStyle>
</Style>
[with a lot of other style information following this}
(2) body of kml file where a data element (point, table, row,
or whatever fits your data model)
(3) a Trailer part, an easy one:
</Document>
</kml>
I wrote a program then that
(1) read in the template and the data
(2) Wrote out the template header to a text file
(3) Wrote out a kml data block for each of my data elements
v