# Quick XML Access Question

**URL:** <https://forum.kirupa.com/t/quick-xml-access-question/215319>\
**Category:** flash\
**Created:** [February 6, 2007, 9:37am UTC](https://forum.kirupa.com/t/quick-xml-access-question/215319 "2007-02-06T09:37:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foxykav](https://avatars.discourse-cdn.com/v4/letter/f/3be4f8/32.png) [@foxykav](https://forum.kirupa.com/u/foxykav)\
**Post date:** [February 6, 2007, 9:37am UTC](https://forum.kirupa.com/t/quick-xml-access-question/215319/1 "2007-02-06T09:37:01Z")

</div>

I’m new to working with xml and was wonder how I would access the \<otherthumbs\> node and get the data from the\<image\> node.

Here is an example of the xml:

```auto
<images>
    <pic>
        <category>Bodysuit</category>
        <name>Body Suit 1</name>
        <description>Body Suit 1 description.</description>
        <mainimage>photos/bodysuit/large/bs1.jpg</mainimage>
        <mainthumb>photos/bodysuit/small/bs1.jpg</mainthumb>
        <price>$00.00</price>
        <sizes>0 - 0</sizes>
        <otherimages>photos/bodysuit/large/bs1.jpg</otherimages>
        <otherthumbs>
            <images>photos/bodysuit/small/bs1.jpg</images>
            <images>photos/bodysuit/small/bs2.jpg</images>
        </otherthumbs>
    </pic>
</images>

```

Here is the ActionScript I have so far:

```auto
xmlNode = this.firstChild;

for (r=0; r<other_total; r++) {
otherthumbs[r] = xmlNode.childNodes*.childNodes[8].childNodes[r].firstChild.firstChild.nodeValue;
}

```

If anyone could help it would be great!

Thanks.
