I am using [dom4j]1 and [XPath]2 in order to traverse an XML.
Assume I have in hand a Node which has children nodes, each of which has the same tag name. e.g. (refer to the b node):
<a>
<b>...</b>
<b>...</b>
</a>
I tried to use selectNodes("//b") but it returns all of the nodes within the document which their open tag is b.
How can I traverse only the children nodes of a specific node, where all the children nodes have the same tag name (e.g. b).