Using the XPathSelect Method

IDNameDeptPhone
1437
Mike
Sales
Phone Numbers:
* 3867
* 773-6482
* (278) 555-3678
* (643) 555-1101
7290
Nikita
Marketing
Phone Numbers:
* 1442
* (278) 555-8521
* (532) 555-4444
2643
Aaron
Marketing
Phone Numbers:
* 8267
* 5428
* 773-6482
* (278) 555-1104
8801
Chris
Accounts
Phone Numbers:
* 2115
2265
Samantha
Sales
Phone Numbers:
* 2581
* 356-3876
* (388) 555-2043
Note that, in Beta 2, the XmlDataSource control does not support paging. Therefore the example you see here uses a GridView control to display the contents of the XML file without requiring paging to be enabled. The XML binding syntax is, however, identical to that used in the pre-Beta2 example.
[view source]     ©2004 Dave And Al, Stonebroom Limited, England.