Python Django syndication,如何替换根元素

Python Django syndication,如何替换根元素,python,xml,django,syndication,Python,Xml,Django,Syndication,假设我使用django的内置聚合框架生成rss页面 <channel xmlns:content="http://purl.org/rss/1.0/modules/content/"> <title>laike9m's blog</title> <link>http://example.com/blog/rss</link> <description>Update on laike9m blog's articles.<

假设我使用django的内置聚合框架生成rss页面

<channel xmlns:content="http://purl.org/rss/1.0/modules/content/">
<title>laike9m's blog</title>
<link>http://example.com/blog/rss</link>
<description>Update on laike9m blog's articles.</description>
<atom:link rel="self" href="http://example.com/blog/rss/"/>
<language>en-us</language>
...
它不替换,而是添加另一个
标记

<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel xmlns:content="http://purl.org/rss/1.0/modules/content/">
<title>laike9m's blog</title>
<link>http://example.com/blog/rss</link>
<description>Update on laike9m blog's articles.</description>
<atom:link rel="self" href="http://example.com/blog/rss/"/>
<language>en-us</language>
<language>zh-CN</language>

莱克的博客
http://example.com/blog/rss
laike9m博客文章更新。
美国英语
中弘中国
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel xmlns:content="http://purl.org/rss/1.0/modules/content/">
<title>laike9m's blog</title>
<link>http://example.com/blog/rss</link>
<description>Update on laike9m blog's articles.</description>
<atom:link rel="self" href="http://example.com/blog/rss/"/>
<language>en-us</language>
<language>zh-CN</language>