This is the code that im trying with:
var items = xdoc.Descendants("item")
.Select(item => new
{
MyImage = (string)item.Elements("enclosure")
.Select(i => i.Attribute("url").Value)
.SingleOrDefault()
})
.ToList();
Here is how it looks in the xml file:
<item>
<enclosure url="http://ep00.epimg.net/politica/imagenes/2013/06/22/actualidad/1371899226_298900_1371917547_miniatura_normal.jpg" length="6409" type="image/jpeg" />
</item>
All I want to do is to grab the url
Any kind of help is appreciated