Note that there are some explanatory texts on larger screens.

plurals
  1. POReading non-standard elements in a SyndicationItem with SyndicationFeed
    primarykey
    data
    text
    <p>With .net 3.5, there is a SyndicationFeed that will load in a RSS feed and allow you to run LINQ on it. </p> <p>Here is an example of the RSS that I am loading:</p> <pre><code>&lt;rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"&gt; &lt;channel&gt; &lt;title&gt;Title of RSS feed&lt;/title&gt; &lt;link&gt;http://www.google.com&lt;/link&gt; &lt;description&gt;Details about the feed&lt;/description&gt; &lt;pubDate&gt;Mon, 24 Nov 08 21:44:21 -0500&lt;/pubDate&gt; &lt;language&gt;en&lt;/language&gt; &lt;item&gt; &lt;title&gt;Article 1&lt;/title&gt; &lt;description&gt;&lt;![CDATA[How to use StackOverflow.com]]&gt;&lt;/description&gt; &lt;link&gt;http://youtube.com/?v=y6_-cLWwEU0&lt;/link&gt; &lt;media:player url="http://youtube.com/?v=y6_-cLWwEU0" /&gt; &lt;media:thumbnail url="http://img.youtube.com/vi/y6_-cLWwEU0/default.jpg" width="120" height="90" /&gt; &lt;media:title&gt;Jared on StackOverflow&lt;/media:title&gt; &lt;media:category label="Tags"&gt;tag1, tag2&lt;/media:category&gt; &lt;media:credit&gt;Jared&lt;/media:credit&gt; &lt;enclosure url="http://youtube.com/v/y6_-cLWwEU0.swf" length="233" type="application/x-shockwave-flash"/&gt; &lt;/item&gt; &lt;/channel&gt; </code></pre> <p>When I loop through the items, I can get back the title and the link through the public properties of SyndicationItem.</p> <p>I can't seem to figure out how to get the attributes of the enclosure tag, or the values of the media tags. I tried using </p> <pre><code>SyndicationItem.ElementExtensions.ReadElementExtensions&lt;string&gt;("player", "http://search.yahoo.com/mrss/") </code></pre> <p>Any help with either of these?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload