If I understood correctly, all you still want to do is to find a way to get the text of the <image> node that has the attribute "size" with a value of "medium".
The straightforward jQuery selector for that would be: "image[size=medium]" So you were nearly there in your second post. Try: var mediumUrl = $(this).find("image[size=medium]").text(); I'm not entirely sure that it will work on your XML, but if it doesn't, I'm sure there's more we can try. On May 21, 6:34 pm, alex <boba...@googlemail.com> wrote: > OK, so now I have a new method of going about things and I'm so nearly > there, but can't get it working. I'm using this piece of Javascript > modified from a d'bug post > > http://itiz.in/12u7 > > If I remove the "medium" from the mix, I get an alert box with all > three image URLs, no spaces. If I add "medium" (which is the size I > need) I get no response, and Safari's Web Inspector says "TypeError: > Result of expression 'attribute["Image"]' [undefined] is not an > object.". I just need to grab that medium image URL, but it's proving > very hard!