# XML syntax help please!

**URL:** <https://forum.kirupa.com/t/xml-syntax-help-please/259683>\
**Category:** flash\
**Created:** [May 7, 2008, 7:59pm UTC](https://forum.kirupa.com/t/xml-syntax-help-please/259683 "2008-05-07T19:59:20Z")\
**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:** [May 7, 2008, 7:59pm UTC](https://forum.kirupa.com/t/xml-syntax-help-please/259683/1 "2008-05-07T19:59:20Z")

</div>

Hi all…  
I’ve looked around for an explanation of xml syntax but none have clarified my issue here…

i have code that reads xml like:

```auto
 <page src ="pages/page1.jpg"> <page src="pages/page2.jpg">

```

… the code that reads it is :

```auto
for (var _loc1 = pageXML.firstChild.firstChild; _loc1 != null; _loc1 = _loc1.nextSibling) 

{ pageNames[_loc2] = _loc1.attributes.src; }

```

i need it to read xml that looks like this:

```auto
<page>pages/page1.jpg</page><page>pages/page2.jpg</page>

```

i am not sure what is the xml structure difference here… its still the firstchild.firstchild but the nodeValue not the attributes.src right? but \_loc.nodeValue doesnt work
