Answer by PJJ for Reading non-standard elements in a SyndicationItem with...
Quote "I can't seem to figure out how to get the attributes of the enclosure tag, or the values of the media tags."Anything formatted <... ...= > is called an "Attribute"For getting all URLs...
View ArticleAnswer by jkade for Reading non-standard elements in a SyndicationItem with...
Whether you're retrieving the non-XML contents of extension elements or XElement items, you might want to consider using a generic helper function like:private static T...
View ArticleAnswer by Ron for Reading non-standard elements in a SyndicationItem with...
This should give you an idea on how to do it:using System.Linq;using System.ServiceModel.Syndication;using System.Xml;using System.Xml.Linq;SyndicationFeed feed = reader.Read();foreach (var item in...
View ArticleAnswer by hitec for Reading non-standard elements in a SyndicationItem with...
Here is how I managed to retrieve the enclosure link from a feed using SyndicationFeed.static void Main(string[] args){ var feedUrl = "https://blog.stackoverflow.com/index.php?feed=podcast"; using (var...
View ArticleAnswer by Oppositional for Reading non-standard elements in a SyndicationItem...
You can use a combination of LINQ and XPathNavigator to extract the syndication extensions of a feed item (based on namespace URI of the extension). For item enclosures, you will want to examine the...
View ArticleAnswer by jr. for Reading non-standard elements in a SyndicationItem with...
Your missing the namespace. Using LINQPad and your example feed:string xml = @"<rss version='2.0' xmlns:media='http://search.yahoo.com/mrss/'> <channel> <title>Title of RSS...
View ArticleReading 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"...
View Article
More Pages to Explore .....