Partager via


Projections and Transformations (LINQ to XML)

This section provides examples of LINQ to XML projections and transformations.

In This Section

Topic

Description

How to: Work with Dictionaries Using LINQ to XML

Shows how to transform dictionaries to XML, and how to transform XML into dictionaries.

How to: Transform the Shape of an XML Tree

Shows how to transform the shape of an XML document.

How to: Control the Type of a Projection

Shows how to control the type of a LINQ to XML query.

How to: Project a New Type (LINQ to XML)

Shows how to project a collection of a user-defined type from a LINQ to XML query.

How to: Project an Object Graph

Shows how to project a more complex object graph from a LINQ to XML query.

How to: Project an Anonymous Type

Shows how to project a collection of anonymous objects from a LINQ to XML query.

How to: Generate Text Files from XML

Shows how to transform an XML file to a non-XML text file.

How to: Generate XML from CSV Files

Shows how to use LINQ to parse a CSV file and generate XML from it.

See Also

Concepts

Querying XML Trees