# e4x dot syntax not working

**URL:** https://forum.kirupa.com/t/e4x-dot-syntax-not-working/291930
**Category:** flash
**Created:** [July 7, 2009, 7:49pm UTC](https://forum.kirupa.com/t/e4x-dot-syntax-not-working/291930 "2009-07-07T19:49:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hectors](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hectors/32/2118_2.png) [@hectors](https://forum.kirupa.com/u/hectors)
#### Post date: [July 7, 2009, 7:49pm UTC](https://forum.kirupa.com/t/e4x-dot-syntax-not-working/291930/1 "2009-07-07T19:49:44Z")

</div>

Hiya thanks for checking this, I think this should be pretty simple but I have been trying to figure it out for ages. I have an xmllist that i am creating from an xml object so I just get a list of nodes, I want to target each of the page nodes using square bracket syntax like this:

xml…page[0];

but for some reason it isn’t working. My xml file is loaded in and is written below.

I need to be able to target the nodes numerically, if anyone could help me out I’d be really grateful.

Many thanks in advance,  
Hectors

xml file:  
\<?xml version=“1.0” encode=“UTF-8”?\>  
\<root\>  
\<Chapter label=“Introduction”\>  
\<page label=“p1” pNum=“1” value=“placeholder1” asset=“img1.png”\>  
\</page\>  
\<page label=“p2” pNum=“2” value=“placeholder2” asset=“img2.png”\>  
\</page\>  
\<page label=“p3” pNum=“3” value=“placeholder3” asset=“img3.png”\>  
\</page\>  
\<page label=“p4” pNum=“4” value=“placeholder4” asset=“img4.png”\>  
\</page\>  
\</Chapter\>  
\<Chapter label=“Chapter 1”\>  
\<page label=“p5” pNum=“5” value=“placeholder5” asset=“img5.png”\>  
\</page\>  
\<page label=“p6” pNum=“6” value=“placeholder6” asset=“img6.png”\>  
\</page\>  
\<page label=“p7” pNum=“7” value=“placeholder7” asset=“img7.png”\>  
\</page\>  
\<page label=“p8” pNum=“8” value=“placeholder8” asset=“img8.png”\>  
\</page\>  
\</Chapter\>  
\</root\>
