# Xml / adding numbers

**URL:** <https://forum.kirupa.com/t/xml-adding-numbers/328079>\
**Category:** Uncategorized\
**Created:** [April 18, 2012, 4:18am UTC](https://forum.kirupa.com/t/xml-adding-numbers/328079 "2012-04-18T04:18:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronmac](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ronmac](https://forum.kirupa.com/u/ronmac)\
**Post date:** [April 18, 2012, 4:18am UTC](https://forum.kirupa.com/t/xml-adding-numbers/328079/1 "2012-04-18T04:18:03Z")

</div>

Hello all.

I have a little problem here that probably has a simple solution. I have an xml file that I loaded and parsed and end up with xmlist like this:

\<goals\>20\</goals\>  
\<goals\>23\</goals\>  
\<goals\>19\</goals\>

I want to variable that adds the goals together to get 62. How do I go about doing this?

Thanks in advance
