Miklós wrote: > Without having any thorough look at your (recursive)'deepen' function, I > can see there's no termination condition for the recursion.... > So that's one reason this won't work the way you want it to. Nope - he has a termination condition. deepen is called for all childNodes, so he makes a traversal of all nodes. Regards, Diez