Questions tagged [syndication-item]

19 questions
39
votes
6 answers

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: Title of…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/rss" class="post-tag grid--cell" title="show questions tagged 'rss'" rel="tag">rss</a> <a href="../../questions/tagged/syndication-feed" class="post-tag grid--cell" title="show questions tagged 'syndication-feed'" rel="tag">syndication-feed</a> <a href="../../questions/tagged/syndication-item" class="post-tag grid--cell" title="show questions tagged 'syndication-item'" rel="tag">syndication-item</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 26 '08 at 02:34">asked Nov 26 '08 at 02:34</time> <a href="../../users/24841/jared" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/24841.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jared" /> </a> <div class="s-user-card--info"> <a href="../../users/24841/jared" class="s-user-card--link">Jared</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">5,977</li> <li class="s-award-bling s-award-bling__gold" title="10 gold badges">10</li> <li class="s-award-bling s-award-bling__silver" title="38 silver badges">38</li> <li class="s-award-bling s-award-bling__bronze" title="48 bronze badges">48</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-2444540"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>14</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>4</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/2444540/syndicationitem-content-is-null" class="question-hyperlink">SyndicationItem.Content is Null</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/c#" class="post-tag grid--cell" title="show questions tagged 'c#'" rel="tag">c#</a> <a href="../../questions/tagged/rss" class="post-tag grid--cell" title="show questions tagged 'rss'" rel="tag">rss</a> <a href="../../questions/tagged/syndication-feed" class="post-tag grid--cell" title="show questions tagged 'syndication-feed'" rel="tag">syndication-feed</a> <a href="../../questions/tagged/syndication-item" class="post-tag grid--cell" title="show questions tagged 'syndication-item'" rel="tag">syndication-item</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 15 '10 at 01:11">asked Mar 15 '10 at 01:11</time> <a href="../../users/28491/kdmurray" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/28491.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="kdmurray" /> </a> <div class="s-user-card--info"> <a href="../../users/28491/kdmurray" class="s-user-card--link">kdmurray</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,988</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="32 silver badges">32</li> <li class="s-award-bling s-award-bling__bronze" title="47 bronze badges">47</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-1806287"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>7</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/1806287/reading-content-text-from-syndicationcontent" class="question-hyperlink">Reading content text from SyndicationContent</a></h3> <div class="excerpt">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…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/asp.net" class="post-tag grid--cell" title="show questions tagged 'asp.net'" rel="tag">asp.net</a> <a href="../../questions/tagged/feed" class="post-tag grid--cell" title="show questions tagged 'feed'" rel="tag">feed</a> <a href="../../questions/tagged/syndicationfeed" class="post-tag grid--cell" title="show questions tagged 'syndicationfeed'" rel="tag">syndicationfeed</a> <a href="../../questions/tagged/syndication-item" class="post-tag grid--cell" title="show questions tagged 'syndication-item'" rel="tag">syndication-item</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 27 '09 at 00:38">asked Nov 27 '09 at 00:38</time> <a href="../../users/175216/asad" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/175216.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Asad" /> </a> <div class="s-user-card--info"> <a href="../../users/175216/asad" class="s-user-card--link">Asad</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">21,468</li> <li class="s-award-bling s-award-bling__gold" title="17 gold badges">17</li> <li class="s-award-bling s-award-bling__silver" title="69 silver badges">69</li> <li class="s-award-bling s-award-bling__bronze" title="94 bronze badges">94</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-4052610"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>5</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/4052610/atom-entry-with-c" class="question-hyperlink">Atom entry with C#</a></h3> <div class="excerpt">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 summary1 I tried to do this with…
Alex Luberg
  • 247
  • 3
  • 10
4
votes
9 answers

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…
Hannes Sachsenhofer
  • 1,835
  • 1
  • 23
  • 38
2
votes
2 answers

Return T where are different return types

I have different return types so I can't decide what to use for that. I was thinking something like that below, but if you have other ideas I am open for that. public T GetValue(ContentType type) { foreach (SyndicationItem item in…
mszabolcs
  • 67
  • 1
  • 10
2
votes
4 answers

Retrieving custom element values from xml using SyndicationFeed

I'm trying to figure out a way to retrieve the itunes elements from this xml feed and can not for the life of me figure it out. Episode 41 - Brobdingnagian Lunches To Die For Fri, 17 Jul 2015 13:00:00…
Spitfire2k6
  • 308
  • 4
  • 17
2
votes
1 answer

SyndicationItem Content < > is encoded to < >

I am adding some simple tags to my SyndicationItem Content object like "

Hello World

" but it is shown in the RSS feed as "<p>Hello World</p>" I have tried to different ways to avoid this, but none works.
Anders
  • 567
  • 1
  • 7
  • 23
1
vote
1 answer

C# Change Namespace Prefix on Root Node of SyndicationItem

Not even sure if I'm asking the right question, but here it goes. Basically because of a lack of support of the WCF DS client for "OData deep inserts" I'm having to manually build up an Atom request. I have the request nearly complete, the only…
uwhuskies
  • 63
  • 1
  • 7
1
vote
1 answer

How can I serialize a collection of SyndicationItem objects?

I have a collection of SyndicationItem objects that I need to serialize but I'm not sure how I go about doing that. Suggestions? IEnumberable blogPosts = GetBlogPosts(); ... private IEnumerable GetBlogPosts() { …
eponymous23
  • 1,088
  • 2
  • 10
  • 24
1
vote
0 answers

c# SyndicationItem pubdate to GMT

I've been trying to produce the an RSS feed using the System.ServiceModel.Syndication library.. At the moment it's displaying AEST with +1000 (e.g. Thu, 23 Apr 2015 09:44:29 +1000) but i need it to be produced as GMT (e.g. Sat, 07 Dec 2013…
bet
  • 962
  • 1
  • 9
  • 22
1
vote
1 answer

Changing ListBox feeds into Pivot (SyndicationItem message instead of text)

So, I found a way of creating RSS feed app for Windows Phone. It binds SyndicationFeed items into Listbox template. And it works great! However, I wanted to make an app, that handles a bit different. I thought, that changing Listbox template into…
a_dzik
  • 927
  • 2
  • 11
  • 24
0
votes
1 answer

Setting SyndicationItem Categories property

I'm working with the SyndicationItem class and have found the Categories property. According to the documentation this property doesn't have a setter, I have however found out that I can write to the property, i.e. var syndicationItem = new…
Eric Herlitz
  • 25,354
  • 27
  • 113
  • 157
0
votes
1 answer

Parse SyndicationItem to c# class

What's the best way to parse the folowing rss Syndication Item into a c# class: FlightStats - Lisboa Airport Departures en-us
user285677
  • 1,098
  • 3
  • 14
  • 21
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
1
2