pub fn generate_atom(feed: &AtomFeed) -> Result<String>Expand description
Serializes an AtomFeed into an Atom 1.0 XML string.
Validation runs first via AtomFeed::validate; invalid feeds return
the validation errors unchanged. On success the produced string is a
stand-alone Atom 1.0 document with xmlns="http://www.w3.org/2005/Atom"
on the root element.
ยงErrors
Returns RssError::ValidationErrors when required elements are missing
or malformed, or RssError::XmlWriteError when the underlying XML
writer fails.