[−][src]Function feed_rs::parser::parse
pub fn parse<R: Read>(source: R) -> ParseFeedResult<Feed>
Parse the input (Atom, a flavour of RSS or JSON Feed) into our model
Arguments
input
- A source of content such as a string, file etc.
Examples
use feed_rs::parser; let xml = r#" <feed> <title type="text">sample feed</title> <updated>2005-07-31T12:29:29Z</updated> <id>feed1</id> <entry> <title>sample entry</title> <id>entry1</id> </entry> </feed> "#; let feed_from_xml = parser::parse(xml.as_bytes()).unwrap();