> I'm readming values from an rss feed, by way of the suplied xml file.
> Using linq I can get the title and description, but need to know the
> last download time. Can some one through me a hint. A snipit of the xml
> file
XDocument doc = XDocument.Load(@"..\..\XMLFile1.xml");
XNamespace cfi =
"http://www.microsoft.com/schemas/rss/core/2005/internal";
foreach (XElement item in
doc.Root.Element("channel").Elements("item"))
{
Console.WriteLine("Item {0} downloaded at {1}.",
item.Element("title").Value, item.Element(cfi + "lastdownloadtime").Value);
}
This outputs the string value of the lastdownloadtime item, if needed
you could also convert it to a DateTime.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Robert Bravery - 02 Mar 2008 13:19 GMT
Brilliant.
Thanks.
I forgot the XNamespace
Robert
>> I'm readming values from an rss feed, by way of the suplied xml file.
>> Using linq I can get the title and description, but need to know the last
[quoted text clipped - 13 lines]
> This outputs the string value of the lastdownloadtime item, if needed you
> could also convert it to a DateTime.