Feed: print roottree

Keeps doctype declaration, xml stylesheets and so on
master
pictuga 2013-12-04 20:14:09 +01:00
parent 71e4d597f8
commit c43bf9f35f
1 changed files with 3 additions and 0 deletions

View File

@ -303,6 +303,9 @@ class FeedParser(FeedBase):
description = desc = FeedDescriptor('desc')
items = FeedListDescriptor('items')
def tostring(self, **k):
return etree.tostring(self.xml.getroottree(), pretty_print=True, **k)
class FeedParserRSS(FeedParser):
"""
RSS Parser