def to_xml(self, encoding = "iso-8859-1"):
        try:
            import cStringIO as StringIO
        except __HOLE__:
            import StringIO
        f = StringIO.StringIO()
        self.write_xml(f, encoding)
        return f.getvalue()
dataset/ETHPy150Open joeyb/joeyb-blog/externals/PyRSS2Gen.py/WriteXmlMixin.to_xml