Quantcast
Channel: Reading non-standard elements in a SyndicationItem with SyndicationFeed - Stack Overflow
Browsing latest articles
Browse All 7 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

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"...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images