Problems parsing xml

Here is the dynamic XML I’m using “data.xml”:

<?xml version="1.0"?>
<salesreps>
<rep firstname="Jon" lastname="Doe" phone="(555)999-9999" email="jondoe@yahoo.com" description="Description for Jon Doe." photo="../LandAm/images/wes.bmp"/>
<rep firstname="Jane" lastname="Doe" phone="(555)555-5555" email="janedoe@yahoo.com" description="Description for Jane Doe." photo="../LandAm/images/robin.jpg"/>
</salesreps> 

There will be more reps depending on the amount of records in a database.

I’m trying to create an empty movie clip for each rep in the xml. The movie clip will have a text field for each attribute. the photo attribute will load a pic into the movie clip.

I know i need to loop through the xml but im not sure how to do it.

Thank you ahead of time for your help.