XPath-Code

Overview

This sample illustrates the use of XPath in Nexaweb and allows users to experiment with XPath expressions. It presents an XML catalog of music album info that is displayed in a table. The user can enter XPath expressions to alter the content of the table by selecting only some records from the XML catalog. The catalog structure is:

<catalog> <cd country="USA"> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <price>10.90</price> </cd> ... </catalog>

Usage: Click on the "Load Data" button to load the XML data, then use the XPath field and "Filter" button to filter the displayed contents of the table.

Concepts Demonstrated

  • Using XPath expressions
  • Loading data from XML document using documentDataSource
  • Updating a table via a Macro

Browse Subversion (browse)