Is there any Generic RSS/ATOM generator in Python?

Torsten Bronger bronger at
Thu Feb 14 14:31:46 CET 2008


Stefan Behnel writes:

> Torsten Bronger wrote:
>> [...]
>> Excerpt from my code:
>>     root = ElementTree.Element("feed", xmlns="")
>>     ElementTree.SubElement(root, "id").text =
>>     ElementTree.SubElement(root, "title").text = self.title
>>     ElementTree.SubElement(root, "updated").text = format_time(self.updated)
> Look at the bottom of this page for an RSS example using the "E factory":
> I find it much more readable than the above code, especially if you use the
> version that comes with lxml.objectify, which has better support for
> namespaces and data types:

If you have more complex tasks, all this may be true; however,
generating Atom is just *so* simple that I prefer the version which
works without tweaking and further dependencies.


Torsten Bronger, aquisgrana, europa vetus
                                      Jabber ID: bronger at
               (See for further contact info.)

More information about the Python-list mailing list