EditIntroduction
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 OverviewEditResources