Skip to main content

Working with LINQ to XML

  • Chapter
Beginning xml with C# 2008
  • 557 Accesses

Abstract

Traditionally, software systems used different methods of accessing data from different data stores. For example, in order to access data from relational databases, flat files, and XML files, developers needed to learn and master different object models. These object models were often totally different from each other in terms of usage syntax and underlying philosophy. Beginning with the .NET Framework 3.5, Microsoft introduced Language Integrated Query (LINQ) technology that simplifies the hassle involved while consuming different sources of data. Though LINQ is a relatively new technology, it is already getting good attention from .NET developers. LINQ comes in three main flavors: LINQ to objects, LINQ to ADO.NET, and LINQ to XML. This chapter will cover LINQ to XML features along with a brief primer on LINQ in general. Remember, however, that any detailed coverage of LINQ technology is beyond the scope of this book. This chapter restricts itself to the following topics:

  • Brief introduction to LINQ expressions

  • Capabilities of LINQ to XML

  • When to use LINQ to XML

  • Loading and saving XML documents using LINQ to XML

  • Manipulating XML documents using LINQ to XML

  • Validating XML documents using LINQ to XML

  • Transforming XML documents using LINQ to XML

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Bipin Joshi

About this chapter

Cite this chapter

(2008). Working with LINQ to XML. In: Beginning xml with C# 2008. Apress. https://doi.org/10.1007/978-1-4302-0998-0_13

Download citation

Publish with us

Policies and ethics