# Xml

**URL:** <https://forum.kirupa.com/t/xml/190911>\
**Category:** Uncategorized\
**Created:** [June 15, 2006, 4:20pm UTC](https://forum.kirupa.com/t/xml/190911 "2006-06-15T16:20:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin1886](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kevin1886](https://forum.kirupa.com/u/kevin1886)\
**Post date:** [June 15, 2006, 4:20pm UTC](https://forum.kirupa.com/t/xml/190911/1 "2006-06-15T16:20:52Z")

</div>

[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]images[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]one[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]picture[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]image1[/COLOR][COLOR=#0000ff]\>[/COLOR] **image1.jpg** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000][COLOR=#990000]image1[/COLOR][/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]description[/COLOR][COLOR=#0000ff]\>[/COLOR] **One** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000]description[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]thumbnail[/COLOR][COLOR=#0000ff]\>[/COLOR] **thumnail1.jpg** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000]thumbnail[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000][COLOR=#990000]image2[/COLOR][/COLOR][COLOR=#0000ff]\>[/COLOR] **image2.jpg** [COLOR=#0000ff]\</i[/COLOR][COLOR=#990000][COLOR=#990000]mage2[/COLOR][/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\</[/COLOR][COLOR=#990000]picture[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\</[/COLOR][COLOR=#990000]one[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#990000]\<two[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]picture[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]image1[/COLOR][COLOR=#0000ff]\>[/COLOR] **image3.jpg** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000][COLOR=#990000]image1[/COLOR][/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]description[/COLOR][COLOR=#0000ff]\>[/COLOR] **Two** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000]description[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]thumbnail[/COLOR][COLOR=#0000ff]\>[/COLOR] **thumnail2.jpg** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000]thumbnail[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000][COLOR=#990000]image2[/COLOR][/COLOR][COLOR=#0000ff]\>[/COLOR] **image4.jpg** [COLOR=#0000ff]\</i[/COLOR][COLOR=#990000][COLOR=#990000]mage2[/COLOR][/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\</[/COLOR][COLOR=#990000]picture[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\</[/COLOR][COLOR=#990000]two[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\</[/COLOR][COLOR=#990000]images[/COLOR][COLOR=#0000ff]\>[/COLOR]

Okay I just made this short XML as an example… how would you make a gallery with three options… A)All images B) Just images in “\<one\>” C) Just images in “\<two\>”? I’m trying to use it in the XML Thumbnail in Flash 2004.

I thought this would work but doesn’t…  
image\* = xmlNode.childNodes\*.childNodes\*.childNodes[0].firstChild.nodeValue;  
image2\* = xmlNode.childNodes\*.childNodes\*.childNodes[3].firstChild.nodeValue;  
description\* = xmlNode.childNodes\*.childNodes\*.childNodes[1].firstChild.nodeValue;  
thumbnails\* = xmlNode.childNodes\*.childNodes\*.childNodes[2].firstChild.nodeValue;  
thumbnails\_fn(i);

(when i=0)

I got it somewhat to work but with my actual XMl (has 16 different images) it only pulls 3 and not all the length of the document?

[COLOR=#0000ff][/COLOR]
