Given an xml document that looks like the following:
Just a little cleaned up with type declarations, basic null checks:
Start with any node in the value of 'dom'
NodeList l = dom.getElementsByTagName("tagname"); for (int j=0; j