Calling xml in flash

I am working photo gallery in that their are 5 buttons.
I am calling photos from xml file.
I want to change photos as per as click on other button.
so,I want change to change the xml file as per as related button click button.
If any one about how to do this so pls. tell me.