Chapter 13. LINQ to XML

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.

Functional Construction

One of the features that LINQ to XML provides is

Get Pro SQL Server 2008 XML 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.