Solved
Forum Discussion
PaulMS
8 years agoSuper Contributor
This is similar to https://stackoverflow.com/questions/36179764/get-path-to-all-xmls-nodes
private static String getXPath(node) {
if (node.parent().name() == node.name()) {
return node.name()
}
return getXPath(node.parent()) + "/" + node.name()
}
then use
output << getXPath(node)+'='+node.text()
evoks
8 years agoOccasional Contributor
Thanks a lot for your answer, that's exactly what I needed !