Loading images via XML into flash

Please could somebody help me with loading three seperate images via XML into flash. I have no idea where to begin.

My XML file looks something like this:
<badges>
<badge1 ID=“1” jpegURL=“images/badge1.jpg”/>
<badge2 ID=“2” jpegURL=“images/badge2.jpg”/>
<badge3 ID=“3” jpegURL=“images/badge3.jpg”/>
</badges>

I aslo need these to be dynamically masked.
Can anyone PLEASE give me an example…?

Thanks