XML Trouble

I have just recently started working with as3 and xml, so I’m still somewhat new to this. I did a few tutorials and created a slideshow that works really well. However the minute I try and swap out my xml file with a wcm xml file things get a little hazy for me.

Here is the xml:


<?xml version="1.0" encoding="UTF-8"?>
<wcm:root xmlns:wcm="http://www.stellent.com/wcm-data/ns/8.0.0" version="8.0.0.0">
	<wcm:list name="mainFeatProperties">
		<wcm:row name="slide">
		  <wcm:element name="ImageName">../images/hp_mainfeat1.jpg</wcm:element>
		  <wcm:element name="LinkTo">http://www.google.ca</wcm:element>
		</wcm:row>
		<wcm:row name="slide">
		  <wcm:element name="ImageName">../images/hp_mainfeat2.jpg</wcm:element>
		  <wcm:element name="LinkTo">http://www.google.ca</wcm:element>
		</wcm:row>
		<wcm:row name="slide">
		  <wcm:element name="ImageName">../images/hp_mainfeat3.jpg</wcm:element>
		  <wcm:element name="LinkTo">http://www.google.ca</wcm:element>
		</wcm:row>
		<wcm:row name="slide">
		  <wcm:element name="ImageName">../images/hp_mainfeat4.jpg</wcm:element>
		  <wcm:element name="LinkTo">http://www.google.ca</wcm:element>
		</wcm:row>
  	</wcm:list>
</wcm:root>

Right now I am just trying to trace the children and I can’t even get that to work. How would I go about just tracing the “slide” elements?


I thought this might work:

var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

xmlLoader.load(new URLRequest("ssdata_hp_flash_properties.xml"));

function LoadXML(e:Event):void {
	xmlData = new XML(e.target.data);
	trace(xmlData.mainFeatProperties.slide);
}

Thanks for the help.