XML Path Validator (XPath)

Data & Formatting Tool

Evaluation Result
---

Help & Examples

Common XPath Syntax:

  • /: Select from the root node
  • //: Select nodes from the current node that match the selection no matter where they are
  • .: Select the current node
  • ..: Select the parent of the current node
  • @: Select attributes
  • [1]: Select the first element
  • [@lang='en']: Select elements with a specific attribute value