title: Reading KML Files Using Fastkml
body: <p>I've searched around quite a bit for this specific Python module, and haven't been able to find a source which points me in the right direction.</p>
  
  <p>I'm trying to read a KML file and display all of the features inside of a folder, I believe I'm achieving this using fastkml, but I have a problem.</p>
  
  <p>Using the following code everything works until the line, len(k.features). I tried printing it, adding quotes as shown in the documentation, but nothing works. Can anyone point me in the right direction?</p>
  
  <p>Thanks.</p>
  
  <p>Example: <a href="https://github.com/cleder/fastkml" rel="nofollow">https://github.com/cleder/fastkml</a></p>
  
  <p>Code:</p>
  
  <pre><code>from fastkml import  kml
  doc = file("Allpoints.kml").read()
  k = kml.KML()
  k.from_string(doc)
  len(k.features())
  </code></pre>