This topic reviews the syntax examples that appear throughout the XPath Reference. All are based on the Sample XML File for XPath Syntax (inventory.xml) . For an example of using an XPath expression in a test file, see "Example of Unions ( | )", at the bottom of this topic.
This page is intent to help demystify XPATH expressions by showing example expressions with explanations as to what elements they match. Example traces are encouraged.