Ok so lets say i have an xml what looks like this example,\[code\]<?xml version="1.0" encoding="UTF-8"?><stats id="865" name="blaah"><example name="blaahblaah"><example1><x ppoints="500"/></example1><example2><x ppoints ="150"/><x points ="500"/><x ppoints ="140"/><x points="200"/></example2></example></stats>\[/code\]what i am trying to do here is to get all the ppoints and round them into one number and all the points and round them into one number,like soStats: "rounded up ppoints" pp & "rounded up points" phelp anyone? many thanks