Question

I am using mono 2.10.5 to parse an RSS 2.0 / mRSS Feed, however, i can't find .net framework syndication namespace under System.ServiceModel nor System.ServiceModel.Web

Are these features available in Mono ? If not anyone knows a good Rss/mRSS feed deserialization library ?

Regards,

EDIT:

I just discovered the packages i am using are different as I am using the monotouch framework. When i go to Add references, the assembly version of system.servicemodel.web is 2.0.5 and the package name is mono-iphone. Is it possible to change this ?

Was it helpful?

Solution

MonoTouch's version of System.ServiceModel[.Web].dll assemblies provide the same API as Silverlight. As such they can be missing some types, like Rss20FeedFormatter.

The Rss20FeedFormatter is available in Silverlight but it located inside the System.ServiceModel.Syndication.dll, which is an SDK assembly (not part of the platform code Silverlight ships with).

You can try to:

a) download the SL3/4 SDK assemblies and use them with MonoTouch. That worked well enough for Moonlight (the open source implementation of Silverlight from which MonoTouch shares a lot of it's BCL code).

b) use the source code from Mono and create your own assembly that provides Rss20FeedFormatter. Since it us MIT.X11 licensed it's easy (legally) to reuse inside your own applications.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top