I'm trying to extract data from a wordpress blog xml feed, this is the format of the xml: http://brockallen.com/category/asp-net/feed/
var xElements = XElement.Parse(ResponseText);
var blogs = (from temp in xElements.Elements()
select new
{
Title = temp.Element("item").Element("title").Value,
URL = temp.Element("item").Element("link").Value,
Image = temp.Element("item").Element("media:content").Value
}).FirstOrDefault();
How do I get them all, and store them in to an object?
Error on media:content is saying The ':' character, hexadecimal value 0x3A, cannot be included in a name.`
When I remove that line, it only gets one, when there are more, even after removing FirstOrDefault()
FirstOrDefault. If you don't just want the first item, don't do that :)blogsvariable has only[0]= 1 result in Results View