Share via


Advanced Query Techniques (LINQ to XML)

This section provides examples of more advanced LINQ to XML query techniques. 

In This Section

Topic

Description

How to: Join Two Collections (C#) (LINQ to XML)

Shows how to use the Join clause to take advantage of relationships in XML data.

How to: Create Hierarchy Using Grouping

Shows how to group data, and then generate XML based on the grouping.

How to: Query LINQ to XML Using XPath

Shows how to retrieve collections based on XPath queries.

How to: Write a LINQ to XML Axis Method

Shows how to write a LINQ to XML axis method.

How to: Perform Streaming Transformations of Text to XML

Shows how to transform very large text files into XML while maintaining a small memory footprint.

How to: List All Nodes in a Tree

Presents a utility method that lists all nodes in an XML tree. This is useful for debugging code that modifies an XML tree.

How to: Retrieve Paragraphs from an Office Open XML Document

Presents code that opens an Office Open XML Document, retrieves the paragraphs in a collection of XElement objects, the text of the paragraphs, and the style of the paragraphs.

How to: Modify an Office Open XML Document

Presents code that opens, modifies, and saves an Office Open XML Document.

How to: Populate an XML Tree from the File System

Presents code that creates an XML tree from the file system.

See Also

Concepts

Querying XML Trees