What is XPath?

What is XPath?

XPath is used to traverse the elements and attributes in an XML document. XPath is a W3C recommendation. XPath provides different types of expressions to retrieve relevant information from the XML document.