XML

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.