Matching a node based on a sibling’s value with XPath

Found it:

/records/record/name[../record-type/text() = "A"]

Leave a Comment