Very Simple? Get XML node

E4X is much easier. In AS2 I can’t get the value from an xml node, without including the tags. (Not using attributes, by the way)

A PHP script returns to flash the following string:

<data>
<x>3</x>
<y>2</y>
</data>

I parse the string to an xml object using new XML() with the string as a parameter of the constructor.

The I set ignoreWhite to true. Finally, I call:

trace(myXML.firstChild.firstChild);

And I get “<x>3</x>”.

I simply want the 3. I’ve tried using myXML.firstChild.firstChild.nodeValue but that returns as null.

Can anyone help?
Thanks in advance. :slight_smile: