embedding youtube video's - KML 2.2

214 views
Skip to first unread message

Willem

unread,
Aug 23, 2007, 2:12:39 AM8/23/07
to KML Developer Support - Getting Started
I downloaded the newest version of GE and wanted to experiment with
the new KML features.

So I copy-paste the code on the documentation page on how to embed a
video.
But when I open it all I get is GE telling me that it encountered a
parsing error at line 49, the last line.

I don't see anything wrong with it, can somebody shed some light on
this?

----------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>Video Example</name>
<Style id="sn_blue-dot_copy3">
<IconStyle>
<Icon>

<href>http://www.google.com/intl/en_us/mapfiles/ms/icons/
blue-dot.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<name>Placemark</name>
<description>
<![CDATA[<div style="font-size:larger">
<div>
<div style="width: 212px; font-size: 12px;">
<b>The Spaghetti Film</b>
</div>
<div style="font-size: 11px;">
<a target="_blank" href="http://www.youtube.com/?
v=FICUvrVlyXc">
http://www.youtube.com/?v=FICUvrVlyXc</a><br>
</div><br>
<div style="margin-left: auto; margin-right:auto;">
<object height="175" width="212">
<param value="http://www.youtube.com/v/FICUvrVlyXc"
name="movie">
<param value="transparent" name="wmode">
<embed wmode="transparent" type="application/x-
shockwave-flash"
src="http://www.youtube.com/v/FICUvrVlyXc"
height="175"
width="212">
</object>
</div>
</div>
</div>
<div style="font-size: smaller; margin-top: 1em;">Saved
from
<a href="http://maps.google.com/ig/add?
synd=mpl&pid=mpl&moduleurl=
http:%2F%2Fwww.google.com%2Fig%2Fmodules%2Fmapplets-
youtube.xml&hl=en&gl=us">
YouTubeVideos</a>
</div>
]]>
</description>
<styleUrl>#sn_blue-dot_copy3</styleUrl>
<Point>
<coordinates>-93.47875999999999,45.083248,0</coordinates>
</Point>
</Placemark>
</Document>
<kml>

ManoM

unread,
Aug 23, 2007, 10:23:52 AM8/23/07
to KML Developer Support - Getting Started
Yes, there's a typo in the documentation. The last line:
<kml>

should be:
</kml>

ManoM

Reply all
Reply to author
Forward
0 new messages