I have XML like this:
<AAA> <BBB aaa="111" bbb="222"> <CCC/> <CCC xxx="555" yyy="666" zzz="777"/> </BBB> <BBB aaa="999"> <CCC xxx="qq"/> <DDD xxx="ww"/> <EEE xxx="oo"/> </BBB> <BBB> <DDD xxx="oo"/> </BBB> </AAA> I want to get first <CCC> element. But with XPath expression //*/CCC[1] I have got two <CCC> elements. Each of them is the first elemet in <BBB></BBB> context. How to get first element in subset?