PodcastRSS.XML (Podcast RSS v0.3.0)

View Source

XML generation for podcast RSS feeds using Saxy.

This module handles the conversion of Channel and Episode structs into valid RSS 2.0 XML format.

Summary

Functions

Build the channel XML element.

Build an episode (item) XML element.

Build the RSS XML structure from a Channel struct.

Convert a Channel struct to RSS XML string.

Functions

build_channel_xml(channel)

@spec build_channel_xml(PodcastRSS.Channel.t()) :: tuple()

Build the channel XML element.

build_episode_xml(episode)

@spec build_episode_xml(PodcastRSS.Episode.t()) :: tuple()

Build an episode (item) XML element.

build_rss_xml(channel)

@spec build_rss_xml(PodcastRSS.Channel.t()) :: tuple()

Build the RSS XML structure from a Channel struct.

to_xml(channel)

@spec to_xml(PodcastRSS.Channel.t()) :: String.t()

Convert a Channel struct to RSS XML string.