syndication-item

Reading non-standard elements in a SyndicationItem with SyndicationFeed

With .net 3.5, there is a SyndicationFeed that will load in a RSS feed and allow you to run LINQ on it. Here is an example of the RSS that I am loading: <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"&gt; <channel> <title>Title of RSS feed</title> <link>http://www.google.com&lt;/link&gt; <description>Det...

SyndicationFeed: Content as CDATA?

I'm using .NET's SyndicationFeed to create RSS and ATOM feeds. Unfortunately, I need HTML content in the description element (the Content property of the SyndicationItem) and the formatter automatically encodes the HTML, but I'd rather have the entire description element wrapped in CDATA without encoding the HTML. My (simple) code: var...

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<SyndicationItem>()[0].Content; string retrivedContent = itemContent .......??? how can I read the text from the itemContent ? The documentation shows how to cr...

SyndicationItem.Content is Null

I'm trying to pull the contents of an RSS feed into an object that can be manipulated in code. It looks like the SyndicationFeed and SyndicationItem classes in .NET 3.5 will do what I need, except for one thing. Every time I've tried to read in the contents of an RSS feed using the SyndicationFeed class, the .Content element for each Syn...

Parse SyndicationItem to c# class

What's the best way to parse the folowing rss Syndication Item into a c# class: <rss version="2.0" xmlns:fh="http://rss.flightstats.com/ns/rss/1.0"&gt; <channel> <title>FlightStats - Lisboa Airport Departures</title> <language>en-us</language> <copyright>Copyright (c) 2007 Conducive Technology Inc. All rights reserved.</copyright> <d...

Atom entry with C#

Hello, How can I make an Atom entry with C# and .NET 4 ? I need to make an entry with this structure: <entry xmlns="http://www.w3.org/2005/Atom" xmlns:f="XXX:aaa"> <title>title1</title> <summary>summary1</summary> </entry> I tried to do this with SyndicationItem class but entry contains more info than I need: SyndicationItem ato...