title: KML file format or minimum requirements
body: <p>Having minimal experience with XML, and none whatsoever with KML, I try to find something along the lines of what a program expects when reading a KML file.</p>
  
  <p>I'm writing some software to generate a KML file, but when I try to open said file in Google Earth, I get this error:</p>
  
  <pre><code>Open of file "C:/blahblah/myFile.kml" failed: Parse error at line 21, column 0:
  
  junk after document element
  </code></pre>
  
  <p>I have reduced myFile down to the following, with the same error.</p>
  
  <pre><code>&lt;? xml version="1.0" encoding="utf-8"?&gt;
  &lt;Placemark&gt;
  &lt;/Placemark&gt;
  &lt;Placemark&gt;
  &lt;/Placemark&gt;
  </code></pre>
  
  <p>Am I missing something some required element? Is there a section of the standard I may have missed that deals with how to properly form a KML file?</p>