O'Reilly logo

Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz Jr.

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

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

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