Summary

In the previous chapter, I covered the new LINQ to XML API that allows you to create, modify, save, and load XML trees. Notice I said trees as opposed to documents, because with LINQ to XML, documents are no longer a requirement. In that chapter, I demonstrated how to query a single node or element for nodes and elements hierarchically related to it. In this chapter, I covered doing the same thing with sequences of nodes or elements using the LINQ to XML operators. I hope I have made it clear how to perform elementary queries on XML trees using LINQ to XML. I believe that this new XML API will prove to be quite useful for querying XML data. In particular, the way the Standard Query Operators can be mingled with LINQ to XML operators ...

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.