Chapter 9. Introducing LINQ to XML

 

This chapter covers

  • LINQ to XML design principles
  • LINQ to XML class hierarchy
  • Loading, parsing, and manipulating XML

In the first three parts of this book, we introduced you to the new language features in C# and VB that help enable LINQ, the default implementation of the standard query operators that work over objects—LINQ to Objects—as well as the implementation of LINQ for working with relational data—LINQ to SQL. In this chapter, we introduce you to another import piece of LINQ—LINQ to XML.

LINQ to XML allows you to use the powerful query capabilities offered by LINQ with XML data. Rather than learn a new API for querying XML, we can stick with the familiar query syntax that we’ve already learned for querying objects and relational data.

In addition to allowing us to query XML using LINQ, LINQ to XML also provides developers with a new XML programming API. The programming API is a lightweight, in-memory API that has been designed to take advantage of the latest .NET Framework. It provides functionality similar to the DOM, but does so with a redesigned API that is more intuitive.

9.1. What is an XML API?

 
 
 

9.2. Why do we need another XML programming API?

 
 
 

9.3. LINQ to XML design principles

 
 
 

9.4. LINQ to XML class hierarchy

 
 
 
 

9.5. Working with XML using LINQ

 
 
 

9.6. Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest