How can I do with XPath:
//bookstore/book/title or //bookstore/city/zipcode/title
Just //title won’t work because I also have //bookstore/magazine/title
p.s. I saw a lot of or examples but mainly with attributes or single node structure.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All
titlenodes withzipcodeorbooknode as parent:Version 1:
Version 2:
Version 3: (results are sorted based on source data rather than the order of book then zipcode)
or – used within true/false – a Boolean operator in xpath
| – a Union operator in xpath that appends the query to the right of the operator to the result set from the left query.