Feed: print roottree
Keeps doctype declaration, xml stylesheets and so on
This commit is contained in:
parent
71e4d597f8
commit
c43bf9f35f
3
feeds.py
3
feeds.py
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user