Murach's ADO.NET 3.5, LINQ,
and the Entity Framework with C# 2008

How to use LINQ to XML

This chapter shows you how to use LINQ to XML for all types of XML data handling. As you'll see, LINQ to XML provides a simpler approach to working with XML data than traditional methods.

Chapter 16 How to use LINQ to XML
An introduction to LINQ to XML 512
The basic structure of an XML document 512
The LINQ to XML object model 514
An introduction to programming with LINQ to XML 516
How to work with existing XML data 518
How to load XML data from a file 518
How to access XML data 520
How to query a single XML collection 522
How to join data from two or more XML collections 524
How to create and work with XML trees 526
How to create an XML tree 526
How to add elements and attributes to an XML tree 528
How to modify documents, elements, and attributes in an XML tree 530
How to remove elements and attributes from an XML tree 532
How to transform an XML tree 534
How to save XML data to a file 536




Murach's ADO.NET 3.5 with C# 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.