View Source Gluttony (gluttony v0.1.0)

Parses RSS 2.0 and Atom 1.0 feeds.

References

extra-information

Extra information

Link to this section Summary

Functions

Parses the given string and returns the values.

Link to this section Functions

Link to this function

parse_string(xml, opts \\ [])

View Source

Parses the given string and returns the values.

Examples

Parsing a xml string from a RSS feed:

{:ok, %{feed: feed, entries: entries}} = Gluttone.parse_string(xml)

When a error happens, the reason is returned:

{:halt, reason} = Gluttone.parse_string(xml)