title: Iterparse object has no attribute next
body: <p>I am parsing a 700mb file, I have the following code with works fine on my test file without the line context.iter(context) and event, elem = context.next().</p>
  
  <pre><code>form xml.etree import cElementTree as ET
  source = ("AAT.xml")
  context = iter(context)
  event, root = context.next()
  for event, elem in context:
           if event == event("end"):
               some processing...
               elem.clear()
           root.clear()
  </code></pre>
  
  <p>However when I move on to iterparse the 700mb the file it still crashes out. Having read:</p>
  
  <p><a href="https://stackoverflow.com/questions/10074200/should-memory-usage-increase-when-using-elementtree-iterparse-when-clearing">Should memory usage increase when using ElementTree.iterparse() when clear()ing trees?</a></p>
  
  <p>I believe this is because I need to clear the root, however having followed a few tutorials which I have incorporated above I'm continually getting an error:</p>
  
  <pre><code>line 9, in &lt;module&gt;
  event, root = context.next()
  AttributeError: 'iterparse' object has no attribute 'next'
  </code></pre>
  
  <p>I'm still new to Python and I cannot work out why this is happening, as far as I can see I am in line with the examples.</p>