Thanks for looking into this. This would work for the sample data above but breaks when new nodes are added such as (C01, C01.111, D01...) The children have also their own children and the children have siblings. I am after a way to hide the complexity of viewing all nodes. A perfect example of what I am after is available at: http://www.nlm.nih.gov/mesh/2004/MeSHtree.A.html. It's done through CGI.
Comment on Re^2: Incrementing a hash of array value