title: python cElementTree uses too much memory
body: <p>I have the following code segment</p>
  
  <pre><code>import xml.etree.cElementTree as et
  
  fstring = open(filename).read()
  tree = et.fromstring(fstring)
  
  for el in tree.findall('tag'):
      do stuff
  </code></pre>
  
  <p>However, fstring is HUGE (~80mbs of data), and I am hiting "Out of memory" error when I try to convert the string to a tree. Is there a way to get around that, perhaps some kind of lazy evaluation of the tree?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: </p>
  
  <p>I tried using iterparse, and it still gives me MemoryError on the iterparse call. Is there a way to possibly split up the file into multiple chunks and process them one by one?</p>