Questions tagged [syndicationfeed]

32 questions
1
vote
0 answers

How do I properly use SyndicationFeed.Load()?

Let's say I want to inherit from SyndicationFeed: public class PodcastSyndicationFeed : SyndicationFeed { private string subtitle; // Gets or sets the subtitle. Used with the iTunes RSS extensions public string Subtitle { get { return…
Dan Friedman
  • 4,941
  • 2
  • 41
  • 65
1
vote
1 answer

SyndicationFeed Unable To Read ATOM Feed

I am trying to parse the following atom XML feed:
code4food
  • 13
  • 3
1
vote
1 answer

Extending SyndicationItem in VB.net

I need your help for an issue about inheritance. In a project of mine I am using a the SyndicationFeed .net class to read several feed a make a ul of its elements. For every element I want to show the feed's image as well, so I wanted to assign the…
lucamauri
  • 142
  • 3
  • 13
1
vote
1 answer

SyndicationFeed.Load throwing 'Element' is an invalid XmlNodeType.

I'm attempting to consume an RSS feed using this code: var reader = XmlReader.Create("http://www.news-herald.com/section?template=RSS&profile=4002042&mime=xml"); var syndicationFeed = SyndicationFeed.Load(reader); But it throws an error: 'Element'…
haxorjim
  • 9
  • 2
1
vote
1 answer

how to add attributes to syndicationitem elementextension

I am trying to add the media:thumnail element to the atom feed using SyndicationFeed .net class. my code looks like the below item.ElementExtensions.Add(new XElement("thumbnail", new…
Kam
  • 21
  • 4
1
vote
1 answer

'SyndicationFeed' does not contain a definition for 'Load'

I'm trying to read rss feeds using Syndicationfeed class. I have added a reference to System.servicemodel.syndication. this is my error Project.SyndicationFeed' does not contain a definition for 'Load' Here's my code: (console application) using…
Giani Noyez
  • 481
  • 3
  • 8
  • 17
1
vote
1 answer

Extend rss feed and read items from SyndicationFeed for Win8 app

I've extended a RSS feed with custom fielditems, eg, with an image url (http://linktoimage I'm reading the RSS feed with: SyndicationFeed feed = await client.RetrieveFeedAsync(new Uri(feedUrl)); But in order to read the new element I need to…
user1923728
  • 153
  • 1
  • 13
1
vote
1 answer

Does Windows 8 C# have support for SyndicationFeed?

Browsing through http://msdn.microsoft.com/en-us/library/windows/apps/br230232.aspx I could not find anywhere that said Windows 8 Apps support the use of SyndicationFeed. Is there a way to still use this?
Ryanb58
  • 351
  • 1
  • 16
0
votes
1 answer

SyndicationFeed not adding rel="self" attribute

I'm using SyndicationFeed to generate an Atom feed. I seem to have everything working except when I use W3C Feed Validation Service to validate my feed, I get the following warning. This feed is valid, but interoperability with the widest range of…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
0
votes
1 answer

.Net SyndicationFeed serialization error when adding extensions to the RSS feed

I create a .NET Framework SyndicationFeed: SyndicationFeed feed = SyndicationFeed.Load(xmlReader); Then I create a new item: var newItem = new SyndicationItem(); newItem.Id = sourceFeedItem.ItemID; newItem.Title = new…
Howiecamp
  • 2,981
  • 6
  • 38
  • 59
0
votes
1 answer

Use Syndicationfeed to load XML with encoded links

I'm reading an RSS using the following code: var reader = XmlReader.Create(url); SyndicationFeed.Load(reader); The RSS looks like this, and SyndicationFeed.Load will throw an exception when the link tag contains encoded characters (in this case å…
Joel
  • 8,502
  • 11
  • 66
  • 115
0
votes
1 answer

How to retrieve Link from Atom feed using SyndicationFeed and limiting number of items

I'm a bit new to asp.net so please bear with me... I am trying to read and display an Atom feed from a WordPress site. Scrounging the web, I was able to put together the following code in the Codebehind: XmlReader reader =…
omairkha
  • 3
  • 2
0
votes
0 answers

How to Format the Result of SyndicationFeed

I am at a loss for finding a solution to format the result passed to the View from the Controller after implementing SyndicationFeed to return RSS feed in XML form. There are countless solutions of how to use SyndicationFeed, but almost nothing…
Matthew
  • 3,976
  • 15
  • 66
  • 130
0
votes
1 answer

Why do i have my name space on every SyndicationItem element?

I'm trying to find out why my namespace(xmlns:ren="http://www.example.com/rss2/ext") appears on every custom syndicationItem element (Original…
Rich J
  • 35
  • 7
0
votes
1 answer

Select items by category in SyndicationFeed

I am using the .NET SyndicationFeed to create my own RSS website feed. No problem creating it and displaying all of them but I have not quite figure out how to select all the news items in the feed that have a specific category. For example all…
Lord of Scripts
  • 3,579
  • 5
  • 41
  • 62