Another popular data storage format nowadays is XML, dealing with hierarchical data structures. As you can guess by now, the story on querying this type of data source is again fundamentally different from dealing with objects or relational data. To illustrate this point, consider the following XML document for our familiar products catalog:

<Products>    <Product Name="Chai" Price="18.00" />    <Product Name="Chang" Price="19.00" />    <Product Name="Aniseed Syrup" Price="10.00" />    <Product Name="Chef Anton's Cajun Seasoning" Price="22.00" />    <Product Name="Chef Anton's Gumbo Mix" Price="21.35" />    <Product Name="Grandma's Boysenberry Spread" Price="25.00" />    <Product Name="Uncle Bob's Organic Dried ...

Get C# 5.0 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.