XPath Query Problem For ex: i want to get "book1" that has both categoryname='Data' and categoryname='XML'. Not just one of them. i tried following XPath queries but first one returns all the books. The second does not return anything because @categoryname cannot be 'Data' and 'XML' at the same time. How can i query this?
/books/book/related[@categoryname='Data' or @categoryname='XML']/.. /books/book/related[@categoryname='Data' and @categoryname='XML']/..