include "libxml.sol"

xml exo
client nom = "A"
   "2356"
/client
client nom = "B"
   "-25"
/client
/xml

dom x = dom()
x.build()

int somme
text temp

x.client.at()         ` placer le pointer sur le premier client

while forever
  temp = x.getData()         ` lire le contenu
  somme + temp.toInt()       ` convertir en entier et additionner
  x.next()                   ` client suivant
  if not x.found() break     ` plus de client? exit
/while

print "somme=", somme