# XML AS2.0 problems

**URL:** <https://forum.kirupa.com/t/xml-as2-0-problems/259612>\
**Category:** flash\
**Created:** [May 7, 2008, 5:50am UTC](https://forum.kirupa.com/t/xml-as2-0-problems/259612 "2008-05-07T05:50:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iMat](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@iMat](https://forum.kirupa.com/u/iMat)\
**Post date:** [May 7, 2008, 5:50am UTC](https://forum.kirupa.com/t/xml-as2-0-problems/259612/1 "2008-05-07T05:50:11Z")

</div>

This doesn’t make sense. I have this code that works, and as soon as I try to read an attribute, or another node, it doesn’t work.

```php

var total = xmlNode.childNodes.length;
        
        for (var i=0; i<total; i++) {
            enContent* = xmlNode.childNodes*.childNodes[0].attributes.image;
            entryTitle* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
            
            description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
            
            trace(enContent*);
            trace(xmlNode.childNodes*.childNodes[0].attributes.image);
        }

```

RETURNS IN OUTPUT:

undefined  
display.jpg  
undefined  
compmass.gif  
undefined  
foam.jpg  
undefined  
axon.gif

The problem is, entryTitle and description both work! If I copy entryTitle\* and name it as entryTitle2\* and put a trace on that, only the original works.

What gives? Why is Flash only reading those two?
