Having a XML document like this:
Surprisingly, none of the answers to date on this old question provide the simplest XPath solution.
This simple XPath
/records/record[record-type = "A"]/name
selects
svn blog
as requested.