Questions tagged [syndicationfeed]
32 questions
7
votes
2 answers
Reading content text from SyndicationContent
Hi i am trying to read the content into string from feed items.
SyndicationFeed feed = SyndicationFeed.Load(feedReader);
SydicationContent itemContent = feed.Items.ToList()[0].Content;
string retrivedContent = itemContent…

Asad
- 21,468
- 17
- 69
- 94
6
votes
3 answers
Pull RSS Feeds From Facebook Page
I need help to pull RSS feeds from a facebook page I'm using the following code but it keeps giving me an error :
string url =
"https://www.facebook.com/feeds/page.php?id=40796308305&format=rss20";
XmlReaderSettings settings =
new…

Yassmeen
- 276
- 4
- 13
5
votes
1 answer
How to determine feed type of a .NET SyndicationFeed (RSS vs Atom)?
Is it possible to determine from the System.ServiceModel.Syndication.SyndicationFeed instance what type of SyndicationFeed is being read? If all I have is the url (blahblah.com/feed) it might be rss or atom, and depending on the type I want to do…

SelAromDotNet
- 4,715
- 5
- 37
- 59
5
votes
0 answers
Dealing with XML errors in RSS feeds using SyndicationFeed.Load
When reading in a 3rd party RSS feed an XMLException is thrown due to an invalid DateTime in the feed XML.
How can I handle this more robustly. For example, is there a way to catch the exception, identify the problematic element and deal with it…

Ben Aston
- 53,718
- 65
- 205
- 331
4
votes
2 answers
Load SyndicationFeed and async/await
Can we read RSS by async/await?
XmlReader reader = XmlReader.Create("http://localhost/feeds/serializedFeed.xml");
SyndicationFeed feed = SyndicationFeed.Load(reader);
Any clue?

NoWar
- 36,338
- 80
- 323
- 498
4
votes
3 answers
Confused about namespaces in Atom feed
Is there any difference between
1000
and
1000
I'm using the SyndicationFeed class in .NET to generate an Atom feed, and I need to add some elements…

Jagd
- 7,169
- 22
- 74
- 107
4
votes
1 answer
Overwriting root element in syndicationfeed, Adding namespaces to root element
I need to add new namespaces to the rss(root) element of my feed, in addition to a10:
.
.
.
I am using a SyndicationFeed class serialized to RSS 2.0 and I use a XmlWriter to…

Amin
- 73
- 1
- 7
3
votes
1 answer
How do I read a secure rss feed into a SyndicationFeed without providing credentials?
For whatever reason, IBM uses https (without requiring credentials) for their RSS feeds. I'm trying to consume https://www.ibm.com/developerworks/mydeveloperworks/blogs/roller-ui/rendering/feed/gradybooch/entries/rss?lang=en with a .NET 4…

John Kaster
- 2,509
- 1
- 33
- 40
2
votes
1 answer
Is there a way to create a SyndicationFeed from a String?
I'm trying to recreate a SyndicationFeed object (System.ServiceModel.Syndication) from XML data that has been stored locally.
If I were working with XMLDocument, this would be easy.I'd call LoadXml(string).
The SyndicationFeed will only load from…

Roberto Bonini
- 7,164
- 6
- 39
- 47
2
votes
1 answer
SyndicationFeed - item summary (RSS description) - extract only text from it
I’m using the SyndicationFeed class to consume some rss feeds for articles. I wonder how to get only the text from the item's Summary field, without the html tags.
for example, sometimes (not always) it contains html tags such as: div, img, h, p…

SunShine
- 57
- 9
2
votes
1 answer
How do you properly use xmlns namespaces with custom extensions to .NET SyndicationFeeds?
I am using the .NET SyndicationFeed class and have added some of my own extensions using SyndicationItem.ElementExtensions.Add() as well as setting SyndicationItem.Content to some Xml content.
My problem is that my namespace shows up multiple times…

Kirk Liemohn
- 7,733
- 9
- 46
- 57
2
votes
1 answer
How to improve my solution for Rss/Atom using SyndicationFeed with ServiceStack?
I successfully used System.ServiceModel.Syndication.SyndicationFeed to add some Atom10 output from my ASP.NET 3.5 web site. It was my first production use of ServiceStack, and it all work fine.
My first attempt resulted in UTF-16 instead of UTF-8,…

mattias
- 870
- 5
- 18
2
votes
1 answer
Render pubDate with RSS SyndicationFeed api
I am trying to serve an RSS feed from my ASP.net MVC site. Everything is working accept for the pubdate element. I can't seem to get the Rss20FeedFormatter to output it. I thought that it maps to the LastUpdatedDate property on the SyndicationFeed…

Vadim Rybak
- 1,677
- 20
- 25
1
vote
1 answer
Why does XmlWriter.Create() fail my test with Rss20FeedFormatter and SyndicationFeed?
The following test below passes only because new XmlTextWriter(sw) is used instead of XmlWriter.Create(sw, settings) or XmlTextWriter.Create(sw):
public void ShouldGenerateRssFeed()
{
//reference:…

rasx
- 5,288
- 2
- 45
- 60
1
vote
2 answers
How does one expose a WCF Syndication Service Library for URL access?
Using VS 2010, I've created a WCF Syndication Service Library, that debugs fine--browser shows the feed I created and everything.
The problem is: I published this service library to IIS 7 on Server 08R2 to an application directory. The publish…

cboler
- 709
- 4
- 14