Accessing an XML node through a variable

Hello I would like to access an xml node through a variable.

something like the following:

my_images = myXML.(myVariable.name).IMAGE;

but of course it does not work.

Any help would be much appreciated.

Andres.