# Quick help with xml structure/syntax

**URL:** <https://forum.kirupa.com/t/quick-help-with-xml-structure-syntax/278765>\
**Category:** Uncategorized\
**Created:** [January 5, 2009, 1:12pm UTC](https://forum.kirupa.com/t/quick-help-with-xml-structure-syntax/278765 "2009-01-05T13:12:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmakat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/karmakat/32/476_2.png) [@karmakat](https://forum.kirupa.com/u/karmakat)\
**Post date:** [January 5, 2009, 1:12pm UTC](https://forum.kirupa.com/t/quick-help-with-xml-structure-syntax/278765/1 "2009-01-05T13:12:05Z")

</div>

Hi there,

I just need some quick advice as to the structure of an xml file like the following:

```auto
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<gallery width="200" height="200" maxAngle="10">

<image img="images/1.jpg" address="113 grenadier rd." href="no" target="_self"><image img="images/1.jpg"</></>

<image img="images/2.jpg" address="112 grenadier rd." href="no" target="_self"><image img="images/2.jpg"</></>

</gallery>

```

My problem is that the flash that creates the xml is much more complicated than the one that reads it, and it puts the path it uses for uploading images into that second instance of the path inside the childnode of the parent image tag.

So the the gallery has this line which only reads the first instance but I want it to read the second path instance… in bold…

[SIZE=“2”] **\<image img=“images/2.jpg”\</\>** \</\>[/SIZE]

And here is the problem line, that I need help with because I can’t figure out the proper structure/syntax to read the info in bold above:

```auto
tImages = images.firstChild.childNodes;

```

Thanks in advance!
