O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required