What XPath can I use to select any category with a name attribute specified and any child node author with the value specified.
I\'ve tried different variations of t
question is not clear, but what i understand you need to select a catagory that has name attribute and should have child author with value specified , correct me if i am worng
here is a xpath
//category[@name='Required value'][./author[contains(.,'Required value')]]
e.g
//category[@name='Sport'][./author[contains(.,'James Small')]]