Summary

Whenever someone utters the word LINQ, the first image that most developers seem to conjure is that of performing a data query. More specifically than that, they seem to want to exclude data sources other than databases. LINQ to XML is here to tell you that LINQ is about XML too. And not just about querying XML.

In this chapter, I showed you some of the pain of dealing with XML when using the existing W3C DOM XML API and some of the traditional cheats to avoid that pain. In the next chapter, I cover the LINQ to XML API. Using this API, I demonstrate how to create XML hierarchies in a fraction of the code possible with the W3C DOM XML API. Just to tease you, I will tell you now that in the next chapter I will create the same XML hierarchy ...

Get Pro LINQ: Language Integrated Query in C# 2008 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.