I realise that VBA is causing an uneasy feeling for you but could you
at least give me some help. There is very little about this on the
internet.
I have tried reading the kml file with MSXML. and other methods of
reading a kml file line by line.
I have also tried coding the string like this
KMLstring = "<?xml version=""1.0"" encoding=""UTF-8""?>" & _
"<kml xmlns=""
http://earth.google.com/kml/2.1"">" & _
"<Placemark>" & _
"<name>Geneva</name>" & _
"<LookAt>" & _
"<longitude>6.156182706892176</longitude>" & _
"<latitude>46.20746317320977</latitude>" & _
"<altitude>0</altitude>" & _
"<range>316.3662914479763</range>" & _
"<tilt>0</tilt>" & _
"<heading>6.199453434125936</heading>" & _
"</LookAt>" & _
"<Point>" & _
"<coordinates>6.156019183879536,46.20743386584116,0</coordinates>" &
_
"</Point>" & _
"</Placemark>" & _
"</kml>"
or in one big line like this
KMLstring = "<?xml version=""1.0"" encoding=""UTF-8""?><kml
xmlns=""
http://earth........</kml>"
I have a feeling that there is a problem with my coding as well
because I consider these string to be correct.
If I use the above string and code i simply get no error at all? what
things can/should I check to see where the problem is? What
functions or checks are built in to GEFeatureContainerCoClass or
KmlObjectCoClass.
What are my alternatives here? Is there anyway that the plugin can
itself take a kml from anything other than http server?
If nobody really wants to answer me on this then at least tell me to
whom I can have a winge to that they intentionally disabled the plugin
from gettting kml files from a local drive. I have also tried the COM
API with google earth and am having a great time as I just have to
reference the kml.