user1,user2,user3 all are unique but their structures are same My requirement is that i give input say user1 then it gives output like <a>qq</a> <b>qq</b> <c>qq</c> to put in a string Thanks
I don't know much about jdom but XPATH should be same. use this xpath on the document object root/user1, which will return you the list of its child nodes and you can print those child nodes.