I'm looking to display a list of same-level node names, without duplicates.
Let's say I have
<a>
<b>
<c />
<d />
<d />
</b>
<b>
<e />
<c />
<f />
</b>
</a>
I'd want c,d,e,f to be displayed. I've found several solutions to a similar problem, eliminating duplicate siblings from output, but I'm having trouble eliminating duplicate "cousins".