I have a requirement here, I would try to keep it in very simple terms,
I have a raw information in the form of XML:
<MyFruits> <Apple>23</Apple> <Mango>12</Mango> <Orange>10</Orange> <Apple>19</Apple> </MyFruits>
I want to get only unique fruits among them. (Apple,Mango and Orange)
Can anyone write an XPath to retrieve this? Status : Not Answered
You can give your answers as comments
Hint : Had the XML be like below
<MyFruits> <Apple>23</Apple> <Apple>19</Apple> <Mango>12</Mango> <Orange>10</Orange> </MyFruits>
This XPath would have worked
//MyFruits/[not(name(.)=name(following-sibling::))]