I am processing an XML file where I want to keep count of number of nodes according to condition. If condition is true then increase the global variable by 1 and if false then doesn't increase. How to do this by using for-each loop.
Thanks in Advance.