# Xml and numbers

**URL:** <https://forum.kirupa.com/t/xml-and-numbers/54406>\
**Category:** Uncategorized\
**Created:** [June 14, 2004, 1:02pm UTC](https://forum.kirupa.com/t/xml-and-numbers/54406 "2004-06-14T13:02:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasier](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Nasier](https://forum.kirupa.com/u/Nasier)\
**Post date:** [June 14, 2004, 1:02pm UTC](https://forum.kirupa.com/t/xml-and-numbers/54406/1 "2004-06-14T13:02:59Z")

</div>

hi,

My problem is a bit more complex as I describe here but if someone can help me with this im sure I’ll figure out the rest myself.

I’ve a xml file that looks something like:

\< h e l l o \>  
\< t e s t \> 2 0 \< / t e s t \>  
\< / h e l l o\>

after I load the xml into flash and use the following actionscript:

```auto
forExample = example.childNodes[0].childNodes[0];

```

it displays 20 on the screen.

But now I like to add 2.

So I thought:

```auto
showMe22 = forExample + 2;

```

but unfortunatly that doesnt work… it displays “NaN” instead of 22.

For some reason it doesnt see 20 as a integer (but as text?). How can I solve this problem n make it display 22?

Thanx in advance.

Nasier
