Copyright | (c) Galois, Inc. 2008, (c) Sigbjorn Finne 2009- |
---|---|
License | BSD3 |
Maintainer | Sigbjorn Finne <sof@forkIO.com> |
Stability | provisional |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Convert from XML to Feeds.
Documentation
parseFeedFromFile :: FilePath -> IO Feed Source
'parseFeedFromFile fp' reads in the contents of the file at fp
;
the assumed encoding is UTF-8.
parseFeedString :: String -> Maybe Feed Source
'parseFeedString str' tries to parse the string str
as
one of the feed formats. First as Atom, then RSS2 before
giving RSS1 a try. Nothing
is, rather unhelpfully, returned
as an indication of error.
readRSS2 :: Element -> Maybe Feed Source
'readRSS2 elt' tries to derive an RSS2.x, RSS-0.9x feed document
from the XML element e
.