How can I do with XPath:
//bookstore/book/title or //bookstore/city/zipcode/title
Just //tit
//tit
If you want to select only one of two nodes with union operator, you can use this solution: (//bookstore/book/title | //bookstore/city/zipcode/title)[1]
(//bookstore/book/title | //bookstore/city/zipcode/title)[1]