Skip to content

Instantly share code, notes, and snippets.

@stevedoyle
Last active August 29, 2015 14:14
Show Gist options
  • Save stevedoyle/c909feb6fd6d382b1173 to your computer and use it in GitHub Desktop.
Save stevedoyle/c909feb6fd6d382b1173 to your computer and use it in GitHub Desktop.
XPath for finding elements with a given text value
Find students whose name is Bob:
//Student/name[text()="Bob"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment