I have recently completed your kind of task.So I hope I can give you a maximum support.Please ask any question about this.
Here is the code snippets which I have used.
private List<RssReader> GetBlogRssFeeds(string rssUrl)
{
var rssFeed = XDocument.Load(rssUrl);
var rssFeedOut = from item in rssFeed.Descendants("item")
select new RssReader
{
Title = item.Element("title").Value,
Link = item.Element("link").Value,
Description = ((item.Element("description") != null) ? Regex.Replace(Regex.Replace(item.Element("description").Value, @"<[^>]+>| ", "").Trim(), @"\s{2,}", " ") : "").Substring(0, 389),
ImageSrc = (item.Element("description") != null) ? Regex.Match(item.Element("description").Value, "<img.+?src=[\"'](.+?)[\"'].*?>", RegexOptions.IgnoreCase).Groups[1].Value : "",
};
return rssFeedOut.ToList();
}
public class RssReader
{
public string Link { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string ImageSrc { get; set; }
}
HTML (MVC View)
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<RssReader>>" %>
<div id="divBlogContent">
<table>
<% foreach (var p in Model)
{ %>
<tr style="font-size: 18px; font-weight: bold; text-decoration: underline;">
<td colspan="2">
<%= Html.Encode(p.Title) %>
</td>
</tr>
<tr>
<td style="width: 400px; font-weight: normal; text-align: left">
<%= Html.Encode(p.Description) %>
</td>
<td style="width: 300px">
<img src="<%: p.ImageSrc %>" alt="Smiley face" height="120" width="200">
</td>
</tr>
<% } %>
</table>
</div>