<Restaurant>
<firstFloor type="chinese" price="High" type="Indian">
<firstFloor type="chinese" price="High">
</Restaurant>
I am trying to find the number of duplicate attributes inside a single node using xpath 1.0.
Can anyone tell a method to find that type has been assigned two times in the first firstFloor node? Existing solutions does not provide solution to find the duplicate attributes within the same node (Compares sibling nodes)?
I am expecting for a xpath 1.0 answer however xpath 2.0 answer is also acceptable.
Thanks in advance.