Hi, I'm new to xpath. I have some question I dont know how to do it.. I've googled about it and i dont see any solution.

Question:

I wanted to do a math calculation.(this i know how to do) but then i wanted it to display it out using my xpath query..

can someone be kind enough to show me some simple calculation which it will come out with the number??

exp: //Studentsum(Subjects/Marks)>100 - this is just to show out the which student have the marks more than 100. But what i want is i wanted to display out the total Marks ( number ) Any idea??

2nd Question:

I'm just wondering.. can xPath put the numbers or string... into a variable?? ^^ just wondering..

Thanks for anyone who helping me.. cause I'm realy new to xpath..

Or do you all have any link which can teach me how to display out the number / putting the number into a variable? ^^

Best Regards,

Hongz