linq to xml return second element
- by Phil
Hi
Im trying to return to the second element in the xml from flickr.
This always returns the first element:
ImageUrl = item.Element(ns + "link").Attribute("href").Value,
and this errors?
ImageUrl = item.Elements(ns + "link")[1].Attribute("href").Value,
Thanks