I am attempting to consume my Zenfolio RSS feed so that i can display the images in the feed. How can i access the url value of the media:thumbnail and media:content elements in my RSS feed? I have googled high and low and not found an answer regarding how to access the url value. There was a similiar unanswered SO post.
Examples of the 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 my 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 view i have @ModelType System.ServiceModel.Syndication.SyndicationFeed and
@For Each i In ViewData.Model.Items
@i.Title.text @<br />
<!--What do i do here to get the url values?-->
Next