Language-Integrated Query (LINQ) is an exciting new .NET Framework feature that provides a standard set of operators to modify, query, and manipulate data without regard to the source. LINQ to XML, or XLinq, provides a variety of XML-based query and manipulation tools that are built right into the C# and Visual Basic (VB) languages. LINQ to XML has a fast, lightweight, in-memory XML Application Programming Interface (API). In this chapter, I'll discuss some of the features of LINQ to XML.
The code in this chapter takes advantage of C# language extensions that are not available in Visual Studio 2005, but they are available in Visual Studio 2008.
One of the features that LINQ to XML provides is