title: Python/ElementTree: Parsing inline elements w/ respect to surrounding text?
body: <p>I need to parse some XML containing <em>inline</em> elements. The XML look, for example, like this:</p>
  
  <p><code>&lt;section&gt;
  Fubar, I'm so fubar, fubar and even more &lt;fref bar="baz"&gt;fubare&lt;/fref&gt;. And yet more fubar.
  &lt;/section&gt;</code></p>
  
  <p>If I iterate now over this structure with <code>for elem in list(parent): ...</code> I only get access to fref. If I now process fref, the surrounding text is of course lost, since text isn't  a real element.</p>
  
  <p>Does anybody know of a way to properly address this issue?</p>