I have and XML like this:
<album>
<image size="small">http://exaplem/example.jpg</image>
<image size="medium">http://exaplem/example.jpg</image>
<image size="large"> http://userserve-ak.last.fm/serve/174s/42566323.png </image>
<image size="extralarge"> http://exaplem/example.jpg </image>
</album>
...and I want to extract and save <image size="large">...</image>
as string.
My goal is obtaining the child text node of the extracted element. For example http://userserve-ak.last.fm/serve/174s/42566323.png
.
I've tried with
XmlNodeList xnList = xml.SelectNodes("image[@size='large']");
foreach (XmlNode xn in xnList)
{
.....
}
... but I'm lost.
What's the best way to do what I require to do?