Using XPath is it possible to get the name of each node in a path to a target node as a String?
Example.xml
<parent>
<childOne>
<target>true</target>
</childOne>
<childTwo>
<target>true</target>
</childTwo>
<childThree>
<target>false</target>
</childThree>
</parent>
Selects all ancestors where target is true
//node()[target = "true"]/ancestor-or-self::*
Is it possible to get this result
"parent/childOne/target"
"parent/childTwo/target"