Sometimes this happens if you put a space or anything in front of the
XML declaration at the front of the file, this line:
<?xml version="1.0" encoding="UTF-8"?>
If that's not the problem, can you post copies of the KML that you
created in the Files section of this group? Don't just copy and paste
it here, we need to see the actual files. Maybe we can debug them.
ManoM
Thanks for the help,
Joe
I've replicated the problem, and I see why it's happening, but I don't
know why TextEdit is doing it. When I open your file in a text editor,
I get:
{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420
{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard
\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql
\qnatural\pardirnatural
\f0\fs24 \cf0 <?xml version="1.0" encoding="UTF-8"?>\
<kml xmlns="http://earth.google.com/kml/2.1">\
<Document>\
<Placemark>\
<name>CDATA example</name>\
<description>\
<![CDATA[\
<h1>CDATA Tags are useful!</h1>\
<p><font color="red">Text is <i>more readable</i> and \
<b>easier to write</b> when you can avoid using entity \
references.</font></p>\
]]>\
</description>\
<Point>\
<coordinates>102.595626,14.996729</coordinates>\
</Point>\
</Placemark>\
</Document>\
</kml>}
The first 7 lines and the {} are what are causing your problem. Are
you saving as a text file?
ManoM
Thanks,
Joe
Well, there's always JEdit, which the Earth Outreach folks have a
great tutorial on:
http://earth.google.com/outreach/tutorial_jedit.html
That shows how to use JEdit to validate your KML file. JEdit requires
Java. Other people really like Emacs and vi, which I'm sure are
available for the Mac.
ManoM
ManoM
I recommend using TextEdit for Mac. It *does* provide editing plain
text-files. Menu > Format > Make Plain Text
You can set the default in the prefs, if you don't generally use it to
create rich text files.
TextWrangler <http://www.barebones.com/products/textwrangler/> is a
good free plain text editor for Macs. It beats the heck out of
TextEdit, and unlike vi or emacs it won't scare newbies away before
they even get to open the program.
Jonathan