title: Can I use ElementTree to get the full structure of an XML file?
body: <p>Suppose my xml looks like this:</p>
  
  <pre><code>&lt;stuff&gt;fee &lt;i&gt;italic&lt;/i&gt; fie &lt;b&gt;bold&lt;/b&gt; foe&lt;/stuff&gt; 
  </code></pre>
  
  <p>If I parse this with ElementTree, I can use <code>iter()</code> to access the sub elements, and I can use <code>itertext()</code> to access the text elements, but how can I access them both? In other words, I want to iterate through <code>&lt;stuff&gt;</code> and get:</p>
  
  <pre><code>text "fee "
  element &lt;i&gt;
  text " fie "
  element &lt;b&gt;
  text " foe"
  </code></pre>
  
  <p>Is this possible (and easy), or am I using the wrong parser?</p>