Dynamic XML PhotoAlbum Help

Hey All,
I want to create a listbox that contains album names, ie album1, album2 etc. Then when a user selects an album, the photos load for that album. The albums need to be generated from a dynamic XML page. So when the user selects a list item, it sends a variable to the XML document, and generates the dynamic XML for that photo album. Does anyone know how to send dynamic variables to XML and then return that dynamically generated XML into flash?