Dynamic XML menu

http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm

i want to create a menu like one in this tutorial. but my xml file is little bit complicated to me. i don’t have any attributedsin my xml. this is my xml file

<CD-structure>
<Product_Group>

&lt;ProductGroup&gt;DI&lt;/ProductGroup&gt; 
&lt;Description&gt;Digital Images&lt;/Description&gt; 

<Category>
<PrimaryCat>DSC</PrimaryCat>
<Description>Digital Still Camera</Description>

&lt;Sub-Category&gt;
&lt;SecondaryCat&gt;Cyber-shot&lt;/SecondaryCat&gt; 
&lt;Description&gt;Cyber-shot&lt;/Description&gt; 
&lt;/Sub-Category&gt;

&lt;Sub-Category&gt;
&lt;SecondaryCat&gt;Mavica&lt;/SecondaryCat&gt; 
&lt;Description&gt;Mavica&lt;/Description&gt; 
&lt;/Sub-Category&gt;

</Category>
</Product_Group>
<Product_Group>





</Product_group>
<HeaderInfo>
<Copyrights>2004 xxx ELECTRONICS ASIA PACIFIC Pte Ltd. ALL RIGHTS RESERVED.</Copyrights>
<HomePageCaption>Welcome to xxxxx SUMMER 2004 CATALOGUE</HomePageCaption>
<HomePageWelcomeNote>Welcome to xxxxx SUMMER 2004 CATALOGUE . some detailed write up goes here …</HomePageWelcomeNote>
<HomePagePictureFileName>livingroom.jpg</HomePagePictureFileName>
<HomePageAudioFileName>Audio.swf</HomePageAudioFileName>
</HeaderInfo>
</CD-structure>

help me…

for a node that looks like <SecondaryCat>Cyber-shot</SecondaryCat>, “Cyber-shot” is the value of the node and is accessed with nodeValue. So in your actionscript, using the XML file you gave, you could access it using the following:

rootNode = xmlObject.firstChild; // <CD-Structure>
subNode1 = rootNode.childNodes[0]; // <Product_Group>
subNode2 = subNode1.childNodes[2]; // <Category>
subNode3 = subNode2.childNodes[2]; // <Sub-Category>
theNode = subNode3.childNodes[1]; // <Description>
trace (theNode.nodeValue) ; // Cyber-shot

Hope that helps!