I would like to create xpath that would return list of nodes that are the first of their type in my xml hierarchy. For example:
A
/ \
B b
/ \ / \
C c c c
In this representation, I only want to return the nodes in CAPS. I have been looking at various ways to combine predicates and/or position() function, but I am a little confused. Any help would appreciated.
Start Free Trial