HI i am trying to read xml file but i am not able to get the elemets here is my sample code
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Read xml file</title>
<link href=""></link>
<updated>2014-01-06T10:32:04.230060</updated>
<author><name>rss</name></author>
<entry>
<title>abc: Watching "Mary Tyler Moore." Every character is drinking Scotch. #The70s </title>
<link href="http://RobertOSimonson/status/417858586618781697"></link>
<id>/RobertOSimonson/status/417858586618781697</id>
<updated>2013-12-30T19:23:00Z</updated>
<published>2013-12-30T19:23:00Z</published>
<summary>Watching "Mary Tyler Moore." Every character is drinking Scotch. #The70s </summary>
</entry>
<entry>
<title>abc: Galliano makes very appropriate cameo in the '70s-set "American Hustle." #AmericanHustle </title>
<link href="http://RobertOSimonson/status/417511925258272768"></link>
<id>/RobertOSimonson/status/417511925258272768</id>
<updated>2013-12-29T20:26:00Z</updated>
<published>2013-12-29T20:26:00Z</published>
<summary>Galliano makes very appropriate cameo in the '70s-set "American Hustle." #AmericanHustle </summary>
</entry>
</feed>
and in my C# code i am trying like this
var posts = (from p in rssFeed.Root.Elements("entry")
select new
{
Title = p.Element("title").Value,
Link = p.Element("link").Value,
}).ToList();
foreach (var post in posts)
{
Response.Write(post.Title + "<br>");
}
Please Suggest what i am doing wrong. i want to read what is inside Thanks
</feed>