Non sono un esperto di xml.
Ci ho dato un occhiata veloce e basta.

Ti do comunque un link utile per l'xpath http://www.w3.org/TR/xpath