Gopinath Siblings / Therefore you need to restrict the xpath to only the first one, using a position predicate 1.