none
SyndicationFeed.Load => XmlException RRS feed

  • Question

  • hi!

    1 XmlTextReader reader = new XmlTextReader("http://rss.orf.at/futurezone.xml");  
    2 var blogFeed = SyndicationFeed.Load(reader);  
    3 return blogFeed.Items; 

    The Load Methods raises a XmlException:
    The element with name 'RDF' and namespace 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' is not an allowed feed format.

    But that feed (orf.at) seems to be a valid feed...
    where is the problem?

    thx for any help in advance!
    Wednesday, October 22, 2008 2:11 PM

Answers

  • Hi Tomas,

    The Syndication API in WCF only supports RSS or ATOM by default (It must be extended to support any other format like RDF). At first glance, the feed you are using in the example above uses RDF.

    Regards,

    Pablo. 


    Pablo Cibraro - http://weblogs.asp.net/cibrax
    • Marked as answer by ThomasG Thursday, October 23, 2008 5:47 AM
    Wednesday, October 22, 2008 2:59 PM

All replies

  • Hi Tomas,

    The Syndication API in WCF only supports RSS or ATOM by default (It must be extended to support any other format like RDF). At first glance, the feed you are using in the example above uses RDF.

    Regards,

    Pablo. 


    Pablo Cibraro - http://weblogs.asp.net/cibrax
    • Marked as answer by ThomasG Thursday, October 23, 2008 5:47 AM
    Wednesday, October 22, 2008 2:59 PM
  • thx!

    it thought so, but neither if found that in the msdn documentation,
    nor there was any related NotImplemented/NotSupported Exception like "only blabla supported"...
    bad bad microsoft developers ;)
    Thursday, October 23, 2008 5:47 AM
  • Hi,

    I found this thread because I am having similar problem. Three years more has passed, still not supporting? Or if there any other APIs to get it working?

    Regards,

    thsieh

    Monday, April 16, 2012 6:59 AM