A fellow engineer asked me about parsing XML in Java and I handed them this utility class I wrote a while ago. The class fit her need so well, she suggested I post it for others to use. It’s only a few lines of code, but it is useful. I find the nodeListTree2Hash method to be particularly useful in debugging (it’s also perhaps a good example of recursion).
Use it freely, this is all public domain. If you find it useful, leave a comment below.