Hooked on LINQ

Hooked on LINQ - Developers' Wiki
for .NET Language Integrated Query

Quick Search

Advanced Search »

LINQ to XML

Modified: 2006/12/28 22:01 by t_magennis - Categorized as: LINQ to XML

Table of Contents [Hide/Show]


Edit

Introduction

LINQ to XML is a new way to construct, write and read XML data in the .NET language of the developers’ choice. This new API simplifies working with XML data without having to resort to using additional language syntax like XPath or XSLT. LINQ to XML is not a replacement for any of the current DOM’s or XML class libraries; LINQ to XML in many cases overlaps their functionality and aims to provide a superior developer experience, but existing code will continue to work. One aspect of LINQ to XML is that it supports writing Query Expressions and can be combined with any of the other LINQ technologies to create or use XML data as a source or destination format.

Features at a glance:

  • New API for accessing and creating XML documents
  • Query language over XML data (eg. Write XPath like queries in C# code)
  • Load and Save XML documents to files and streams
  • With an XSD schema, you code against strongly types objects

This technology was originally codenamed XLINQ.

LINQ to XML - 5 Minute Overview

Edit

Resources

If you would like to comment on this page, click on the Discuss button located on the top-right of each page. Feel free to edit any mistakes or omissions you find. If you have an objection or find in-appropriate content then contact the administrator. This website is not affiliated with Microsoft®, all content and opinions are those of the specific author and some advice, solutions and article may contain unintentional errors - please use care. Powered by ScrewTurn Wiki version 2.0.33. Some of the icons created by FamFamFam.