RemoteRss.cshtml settings

Topics: Administration, General
Aug 11, 2014 at 7:56 AM
Edited Aug 16, 2014 at 6:49 AM
when using below setup I do NOT get any entries!

PS: with another feed containing <channel> and <item> [.Element("channel") and .Elements("item")]
all works fine!

  • what are the criterias for the tags (.element, elements)
    i.e. is <feed xmlns="" xml:lang="en-us"> ... </feed>? correct OR MUST it be <feed>...</feed>?
I'm confused on what to enter for 'Element and Elements' in below case?
thanks for your ideas and time

My RemoteRss.cshtml:

@using System.Xml.Linq
    var feed = Model.Feed as XElement;
    @foreach (var item in feed
        <li><a href="@item.Element("link").Value">@item.Element("title").Value</a></li>

copied from 'feed' (in RemoteRss.cshtml: 'var feed = Model.Feed as XElement;'):

``` <feed xmlns="" xml:lang="en-us">
<title> stories: Golf</title>
<link href="" rel="alternate" />
<link href="" rel="self" />