XML and lightbox

I have a list on my website that when a list item gets clicked lightbox is activated and an image is loaded.
This is great but what I want is the image to be loaded from an xml document, as well as text being loaded with xml.
anyone know how to do this?