<p>According to the <a href="http://feedparser.org/docs/introduction.html" rel="noreferrer">feedparser documentation</a>, I can turn an RSS feed into a parsed object like this:</p>

<pre><code>import feedparser
d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')
</code></pre>

<p>but I can't find anything showing how to go the other way; I'd like to be able do manipulate 'd' and then output the result as XML:</p>

<pre><code>print d.toXML()
</code></pre>

<p>but there doesn't seem to be anything in feedparser for going in that direction.  Am I going to have to loop through d's various elements, or is there a quicker way?</p>

```
```
from xml.dom import minidom

doc= minidom.parse('./your/file.xml')
print doc.toxml()
```
```
The only problem is that it do not download feeds from the internet.