include "libxml.sol"

xml exo
customer name = "A"
   "2356"
/customer
customer name = "B"
   "-25"
/customer
/xml

print "Adding content of elements..."

dom x = dom()
x.build()

int sum

x.customer.at()                 ` points out first customer

while x.found()
  sum + x.getData().toInt()     ` reads content, converts and add it
let x.next()                    ` next customer

print "sum of elements=", sum