xml spy
Previous  Top  Next
XPath examples

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.
43_xpath4

Find all the person elements, where the Manager attribute value is true.
43_xpath6

Find the total value of all the PhoneExt elements.
43_xpath7

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.
43_xpath8

Previous  Top  Next

⌐ 2002 Altova