I am trying to use the Zenfolio RSS feed so that I can display images in a feed. How can I access the value of the media URL: thumbnail and media: content items in my RSS feed? I googled high and low and did not find an answer on how to access the URL value. There was a similar unanswered answer https://stackoverflow.com/a/464626/
Examples of elements:
<media:thumbnail url="http://riderdesign.net/img/s11/v35/p449020235-2.jpg" width="400" height="225" /> <media:content url="http://riderdesign.net/img/s11/v35/p449020235-2.jpg" type="image/jpeg" medium="image" width="400" height="225" />
My code in the controller:
Public Function Feed() As ActionResult Dim feedurl As String = "http://riderdesign.net/recent.rss" Using x = XmlReader.Create(feedurl) Dim r As SyndicationFeed = SyndicationFeed.Load(x) Return View(r) End Using End Function
In my opinion, I have @ModelType System.ServiceModel.Syndication.SyndicationFeed and
@For Each i In ViewData.Model.Items @i.Title.text @<br /> Next
source share