How can I do with XPath:
//bookstore/book/title or //bookstore/city/zipcode/title
Just //tit
//tit
It the element has two xpath. Then you can write two xpaths like below:
xpath1 | xpath2
xpath1
xpath2
Eg:
//input[@name="username"] | //input[@id="wm_login-username"]