Could you please help me to find all the elements b which have the child element c in the example below?
It should be as simple as
//b[c]
i.e. find a b anywhere that has a c child.
b
c