XPath with multiple conditions October 16, 2022 by Tarik Try: //category[@name="Sport" and ./author/text()='James Small']