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:

image

Again, focusing on our filtering query example, let’s try to select the products with a price less than $25. Once more, we have to familiarize ourselves with another API, this time under the System.Xml namespace.

DOM

System.Xml is an XML Document Object Model API that isn’t very easy to use. To create ...

Get C# 4.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.