Matching a node based on a sibling’s value with XPath January 17, 2023 by Tarik Found it: /records/record/name[../record-type/text() = "A"]