XML Nested Loops?!

Hi Forums

Wondering if someone could check out an xml file for me? I’m building this site for a record company which needs to display info for each artist (bio, pics, CD’s etc) loaded from an xml file. This is pretty straight forward. However I’m stuck when it comes to loading serveral pics for a single artists and displaying them in a rotating gallery type thing (similar to the one in kirupa’s tutorial). I’m pretty new to xml and just not quite sure how to approach this.

I’ve made a mockup xml file and FLA (no AS) which ought to give a better idea of what i’m hoping to acheive…

FLA attached, Here’s the xml:


<artists>
<group> 
<!-- Static Infomation-->
<title>BAND1</title>
<bio>Bio.txt</bio>
<shows>shows.txt</shows>
 
<!--Next/Prev button dynamic photo gallery -->
<photos>
<image source="pic1.jpg" title="pic1 title"/>
<image source="pic2.jpg" title="pic2 title"/>
<image source="pic3.jpg" title="pic3 title"/>
	 </photos>
 
<!--Next/Prev button CD gallery, including title, track listing and purchase link -->
<releases>
<CD>
	<image>cd1.jpg</image>
	<title>CD1 Title</title>
	<tracks>
	 <![CDATA[<p>1. Left For Dead<br>2. In my Dreams<br>3. East Of Paradise</p>]]>
	</tracks> 
	<link>
	 <![CDATA[ <p><a href="<A href="http://www.amazon.com">BUY">http://www.amazon.com">BUY NOW</a></p>]]> 
	</link>
</CD>
<CD>
	<image>cd2.jpg</image>
	<title>CD2 Title</title>
	<tracks>
	 <![CDATA[<p>1. Left For Dead<br>2. In my Dreams<br>3. East Of Paradise</p>]]>
	</tracks> 
	<link>
	 <![CDATA[ <p><a href="<A href="http://www.amazon.com">BUY">http://www.amazon.com">BUY NOW</a></p>]]> 
	</link>
</CD>
</releases>
 
	</group>	
</artists>
 
 

Would appreciate any input, is this the correct way to organise my xml file?

cheers
Doug