A few examples of XPath expressions and their results are shown below. These examples use the CompanyLast.xml file available in the ..\Examples\Tutorial folder supplied with XML Spy.
Find all the elements in the first occurence of the person child element.
Find all the person elements, where the Manager attribute value is true.
Find the total value of all the PhoneExt elements.
Entering the SUM-Function in CAPS displays an error message in the node set window. All XPath expressions are case sensitive, this includes function names as well as node names.
Previous
Top
Next