Rizz.Builder (Rizz v0.1.0)
View SourceHandles the generation of RIZZ-compliant XML from Feed structs.
Summary
Functions
Converts a Feed struct to RIZZ-compliant XML.
Functions
@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>"