# XML content to NUMBER

**URL:** <https://forum.kirupa.com/t/xml-content-to-number/189531>\
**Category:** flash\
**Created:** [June 3, 2006, 2:00pm UTC](https://forum.kirupa.com/t/xml-content-to-number/189531 "2006-06-03T14:00:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stalker](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@stalker](https://forum.kirupa.com/u/stalker)\
**Post date:** [June 3, 2006, 2:00pm UTC](https://forum.kirupa.com/t/xml-content-to-number/189531/1 "2006-06-03T14:00:32Z")

</div>

Here is, what I’ve got to do.

I have an xml which has several nodes, each has an attribute which holds a num (a price of product). Now, after the xml loaded into flash i list out all the product, displaying the names and the price. Under the lis I’ve got to write out the sum for all the prices. But when I just simply use this method

sumNum += accNum

inside the main cycle, I create the list, it just doesn’t work, coz it sees the price tag as a STRING, so it just puts each tag after one another, insted of adding them together.

How could I solve this?

Thanks! 🙂
