title: How to dynamically generate XML file for RSS Feed?
body: <p>I want to create a RSS Feed generator. The generator is supposed to read data from my database and generate RSS feeds for them. I want to write a script that would automatically generate the <code>xml</code> file for validation.</p>
  
  <p>So if a typical <code>xml</code> file for RSS feed looks like this:</p>
  
  <pre><code>  &lt;item&gt;
    &lt;title&gt;Entry Title&lt;/title&gt;
    &lt;link&gt;Link to the entry&lt;/link&gt;
    &lt;guid&gt;http://example.com/item/123&lt;/guid&gt;
    &lt;pubDate&gt;Sat, 9 Jan 2010 16:23:41 GMT&lt;/pubDate&gt;
    &lt;description&gt;[CDATA[ This is the description. ]]&lt;/description&gt;
    &lt;/item&gt;
  </code></pre>
  
  <p>I want the script to replace automatically the field between the <code>&lt;item&gt;</code> and the <code>&lt;/item&gt;</code> tag.
  Similarly for all the tags. The value for the tags will be fetched from the database. So I will query for it. My app has been designed in Django. </p>
  
  <p>I am looking for suggestions as to how to do this in python. I am also open to any other alternatives if my idea is vague.</p>