Skip to main content

Rss201rev2Feed

This class generates RSS 2.0 feeds according to the RSS 2.01 revision 2 specification. It handles the creation of item elements including titles, links, descriptions, and author information, while ensuring compliance with enclosure limits and date formatting standards. The class also supports metadata such as unique identifiers, time-to-live values, and category tags.

Constructor

Signature

def Rss201rev2Feed()

Methods


add_item_elements()

@classmethod
def add_item_elements(
handler: [SimplerXMLGenerator](../xmlutils/simplerxmlgenerator.md?sid=django_utils_xmlutils_simplerxmlgenerator),
item: dict
) - > null

Adds individual item elements to the RSS feed by translating item data into XML tags according to the RSS 2.0 specification.

Parameters

NameTypeDescription
handler[SimplerXMLGenerator](../xmlutils/simplerxmlgenerator.md?sid=django_utils_xmlutils_simplerxmlgenerator)The XML generator instance used to write the feed elements to the output stream.
itemdictA dictionary containing the feed item data, including keys for title, link, description, author, and publication date.

Returns

TypeDescription
nullThe method performs side effects on the handler and does not return a value.