XPath Tutorial
Contents
1 What is XPath?
https://www.w3schools.com/xml/xpath_intro.asp
XPath is a major element in the XSLT standard.
XPath can be used to navigate through elements and attributes in an XML document.
- XPath stands for XML Path Language
- XPath uses “path like” syntax to identify and navigate nodes in an XML document
- XPath contains over 200 built-in functions
- XPath is a major element in the XSLT standard
- XPath is a W3C recommendation
2 XPath Syntax
|
|
3 Absolute and relative XPath
Absolute XPath: Complete Path from Root Element
Relative XPath: You choose Element you want to start from (Use //
if you choose Relative XPath)
Example:
|
|
Relative XPath:
|
|
Absolute XPath:
|
|