XDocument coordinates = XDocument.Load("http://feeds.feedburner.com/TechCrunch");
System.IO.StreamWriter StreamWriter1 = new System.IO.StreamWriter(DestFilePath);
foreach (var coordinate in coordinates.Descendants("guid"))
{
string Links = coordinate.Value;
StreamWriter1.WriteLine(Links + Environment.NewLine );
}
StreamWriter1.Close();
Using this code for the above URL (http://feeds.feedburner.com/TechCrunch) i am able to obtain all the links but i also want to obtain <description> and <content:encoded> element values.
The problem is that i want to obtain <description> etc values along with their guid values so that i can store them in serially (in database).
Should i use LINQ of something for this purpose ?
But how please tell ?
You should iterate over each “item” and retrieve its properties. Do not forget about the “content” namespace.