Rizz.Builder (Rizz v0.1.0)

View Source

Handles the generation of RIZZ-compliant XML from Feed structs.

Summary

Functions

Converts a Feed struct to RIZZ-compliant XML.

Functions

to_xml(feed)

@spec to_xml(Rizz.Feed.t()) :: String.t()

Converts a Feed struct to RIZZ-compliant XML.

Example

iex> feed = Rizz.Feed.new(title: "AI News", link: "https://example.com", description: "AI updates")
iex> Rizz.Builder.to_xml(feed)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><rss version=\"2.0\" xmlns:ai=\"http://xai.org/RIZZ-namespace\">...</rss>"