I'm trying to solve the problem where there is a an xml node where I do not know the contents in advance, however I would like to construct all relevant xpaths to every leaf element. For example:
<parent>
<child1>
<subchild1></subchild1>
</child1>
<child2>
<subchild2></subchild2>
</child2>
</parent>
The code would then pull out the relevant xpaths for every leaf node, in this case the subchilds:
/parent/child1/subchild1
/parent/child2/subchild2
I've looked for any library support and have not found anything. Does anyone have a solution for this?