# Nested xml Flash8

**URL:** <https://forum.kirupa.com/t/nested-xml-flash8/248086>\
**Category:** flash\
**Created:** [January 3, 2008, 5:31pm UTC](https://forum.kirupa.com/t/nested-xml-flash8/248086 "2008-01-03T17:31:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![worker](https://avatars.discourse-cdn.com/v4/letter/w/96bed5/32.png) [@worker](https://forum.kirupa.com/u/worker)\
**Post date:** [January 3, 2008, 5:31pm UTC](https://forum.kirupa.com/t/nested-xml-flash8/248086/1 "2008-01-03T17:31:05Z")

</div>

I creating a portfolio that has a thumbnail menu. When you click on the thumbnail, a preview image show with 1 to 10 buttons under it that opens up detail images of that project.

Main question, How do I access the nested detail images in the xml from flash.

So my xml looks like this:

> \<project\>  
> \<heading\>heading 01\</heading\>  
> \<thumb\>thumb/001\_sm.jpg\</thumb\>  
> \<preview\>preview/001\_med.jpg\</preview\>  
> \<description\>Lorem ipsum dolor sit \</description\>  
> \<link\> \<a href="[http://www.flashden.net](http://www.flashden.net)\</link\>  
> \<bigimages\>  
> \<bigimage\>bigimage/001\_lar.jpg\</bigimage\>  
> \<bigimage\>bigimage/002\_lar.jpg\</bigimage\>  
> \<bigimage\>bigimage/003\_lar.jpg\</bigimage\>  
> \</bigimages\>  
> \</project\>  
> \<project\>  
> \<heading\>heading 02\</heading\>  
> \<thumb\>thumb/002\_sm.jpg\</thumb\>  
> \<preview\>preview/002\_med.jpg\</preview\>  
> \<description\>2 orem ipsum dolor sit \</description\>  
> \<link\>\<a href="[http://www.google.com](http://www.google.com)\</link\>  
> \<bigimages\>  
> \<bigimage\>bigimage/001\_lar.jpg\</bigimage\>  
> \<bigimage\>bigimage/002\_lar.jpg\</bigimage\>  
> \</bigimages\>  
> \</project\>

Flash file looks like this:

> function GeneratePortfolio(xmlData) {  
> xmlNode = xmlData.firstChild;  
> heading = ;  
> thumb = ;  
> preview = ;  
> description = ;  
> //bigImage = ;  
> //link = ;  
> total = xmlNode.childNodes.length;  
> for (var i = 0; i \< total; i++) {  
> var currentPicture = portfolioPictures\*;  
> heading\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;  
> thumb\* = xmlNode.childNodes\*.childNodes[1].firstChild.nodeValue;  
> preview\* = xmlNode.childNodes\*.childNodes[2].firstChild.nodeValue;  
> description\* = xmlNode.childNodes\*.childNodes[3].firstChild.nodeValue;  
> //link\* = xmlNode.childNodes\*.childNodes[4].firstChild.nodeValue;  
> //bigImage\* = xmlNode.childNodes\*.childNodes[5].firstChild.nodeValue;  
> How do I add in bigimages nested bigimage  
> }
