I'm working with a XML file that looks something like this:
<lfm status="ok">
<user>
<name>JohnnyWestlake</name>
<image size="large">http://someurl.com/large.jpg</image>
<image size="extralarge">ttp://someurl.com/exlarge.jpg</image>
...
</user>
</lfm>
And I'm adding this to a user class using Linq like so:
User user;
user = (from lfmUser in userrequest.Descendants("user")
select new User
{
Name = lfmUser.Element("name").Value,
ImageM = lfmUser.Element("image").Value,
...
}).FirstOrDefault();
Question, how can I set ImageM to the url contained in image size="extralarge", and not image size="large"? Or should I go about it another way?