title: Multiple text nodes in Python's ElementTree? HTML generation
body: <p>I'm using ElementTree to generate some HTML, but I've run into the problem that ElementTree doesn't store text as a Node, but as the <code>text</code> and <code>tail</code> properties of <code>Element</code>. This is a problem if I want to generate something that would require multiple text nodes, for example:</p>
  
  <pre><code>&lt;a&gt;text1 &lt;b&gt;text2&lt;/b&gt; text3 &lt;b&gt;text4&lt;/b&gt; text5&lt;/a&gt;
  </code></pre>
  
  <p>As far as I can tell there is no way to generate this- am I missing something? Or, is there a better solution for quick and simple HTML generation in Python?</p>