# Problems parsing xml

**URL:** <https://forum.kirupa.com/t/problems-parsing-xml/172575>\
**Category:** Uncategorized\
**Created:** [December 15, 2005, 7:44pm UTC](https://forum.kirupa.com/t/problems-parsing-xml/172575 "2005-12-15T19:44:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigepmest37](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sigepmest37](https://forum.kirupa.com/u/sigepmest37)\
**Post date:** [December 15, 2005, 7:44pm UTC](https://forum.kirupa.com/t/problems-parsing-xml/172575/1 "2005-12-15T19:44:54Z")

</div>

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

```auto
<?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.
