(self, pretty=False, extensions=True, encoding='UTF-8',
                xml_declaration=True)
return etree.tostring(feed, pretty_print=pretty, encoding=encoding,
                              xml_declaration=xml_declaration)
Generates an RSS feed and returns the feed XML as string.

        :param pretty: If the feed should be split into multiple lines and
            properly indented.
        :param extensions: Enable or disable the loaded extensions for the xml
            generation (default: enabled).
        :param encoding: Encoding used in the  XML file (default: UTF-8).
        :param xml_declaration: If an XML declaration should be added to the
            output (Default: enabled).
        :returns: String representation of the RSS feed.

        **Return type:** The return type may vary between different Python
        versions and your encoding parameters passed to this method. For
        details have a look at the `lxml documentation
        <https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.tostring>`_
Generates an RSS feed and returns the feed XML as string.
Generates an RSS feed and returns the feed XML as string .
def rss_str(self, pretty=False, extensions=True, encoding='UTF-8',
                xml_declaration=True):
        '''Generates an RSS feed and returns the feed XML as string.

        :param pretty: If the feed should be split into multiple lines and
            properly indented.
        :param extensions: Enable or disable the loaded extensions for the xml
            generation (default: enabled).
        :param encoding: Encoding used in the  XML file (default: UTF-8).
        :param xml_declaration: If an XML declaration should be added to the
            output (Default: enabled).
        :returns: String representation of the RSS feed.

        **Return type:** The return type may vary between different Python
        versions and your encoding parameters passed to this method. For
        details have a look at the `lxml documentation
        <https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.tostring>`_
        '''
        feed, doc = self._create_rss(extensions=extensions)
        return etree.tostring(feed, pretty_print=pretty, encoding=encoding,
                              xml_declaration=xml_declaration)
def rss_str ( self , pretty = False , extensions = True , encoding = 'UTF-8' , xml_declaration = True ) : feed , doc = self . _create_rss ( extensions = extensions ) return etree . tostring ( feed , pretty_print = pretty , encoding = encoding , xml_declaration = xml_declaration )