Found it:
/records/record/name[../record-type/text() = "A"]
More Related Contents:
- What is the difference between .// and //* in XPath?
- How to execute XPath one-liners from shell?
- Is there a way to learn xpath without using firebug or xpath as firefox is not supporting the addons?
- xmllint failing to properly query with xpath
- case-insensitive matching in XPath?
- XPath select all elements between two specific elements
- XPath – Difference between node() and text()
- XPath: select text node
- How to use XPath contains() here?
- XPath select node with namespace
- How to read large xml file without loading it in memory and using XElement
- Extract value of attribute node via XPath
- XPath: Get parent node from child node
- How to declare XPath namespaces in xmlstarlet?
- Is there an XSLT name-of element?
- How do you output the current element path in XSLT?
- Get Nth child of a node using xpath
- What is the XPath to select a range of nodes?
- Navigating XML nodes in VBScript, for a Dummy
- How to select a node using XPath if sibling node has a specific value?
- Get nodes where child node contains an attribute
- What is the difference between ‘or’ and ‘|’ when programming in xslt?
- What is the correct XPath for choosing attributes that contain “foo”?
- Difference between “//” and “/” in XPath?
- What is the difference between root node, root element and document element in XML?
- XPath to get all child nodes (elements, comments, and text) without parent
- How to apply the XPath function ‘substring-after’
- XPath to return only elements containing the text, and not its parents
- xpath expression from xml with namespace prefix
- Is it possible to apply normalize-space to all nodes XPath expression finds?