Flash and xml slideshow

iv been trying to make a flash xml slide show…the path of the images are found in the xml file and the transition as well:

<?xml version=“1.0”?>
set transition number from 1 to 9
set transition number to 0 for random effect
<RSS PAUSE=“4000”>
<IMAGE TRANSITION=“7”>img/banner.jpg</IMAGE>

the structure of the xml file need to be exactly the same as shown…can any1 tell me how to write the actionscript…im a total newbie…i really need to complete this task in 2 days…