title: missing some text when iterating xml elements in python
body: <p>I am running the following code in Python 2.7.3 on Mac OS X 10.6.8.</p>
  
  <pre class="lang-python prettyprint-override"><code>import StringIO
  from lxml import etree
  f = open('./foo', 'r')
  doc = ""
  while 1:
      line = f.readline()
      doc += line
      if line == "":
          break
  tree = etree.parse(StringIO.StringIO(doc), etree.HTMLParser())
  r = tree.xpath('//foo')
  for i in r:
      for j in i.iter():
          print j.tag, j.text
  </code></pre>
  
  <p>And the file foo contains</p>
  
  <pre><code>&lt;foo&gt; AAA &lt;bar&gt; BBB &lt;/bar&gt; XXX &lt;/foo&gt;
  </code></pre>
  
  <p>The output is </p>
  
  <pre><code>foo AAA
  bar BBB
  </code></pre>
  
  <p>Why am I not getting the text <code>XXX</code>?  How do I access it?</p>
  
  <p>Thanks</p>