What is the best way for using F# TypeProvider as ATOM and RSS Feed Reader for all versions of RSS 0.9, 0.91, 0.92, 1.0, 2.0 and ATOM 1.0?
I came to the conclusion
- I need a sample file or url per version and format for the TypeProvider (XmlProvider)
- download the feed, parse the header for format and version
- switch for format and version to the corresponding TypeProvider instance and let them parse the feed
My question
Is there a better or simpler way of doing that (especially unifying the feed formats for easy access)?
Note
The .Net Framework class SyndicationFeed does not work very well on real world data, because of parsing-exceptions.