Processing an XML file using LINQ to XML

In this recipe, we will be building a .NET Standard 2.0 library that reads XML data using LINQ to XML. LINQ to XML is a LINQ enabled in-memory programming interface. It enables you to work with XML using your favorite .NET language. C# is used in this book to describe the code. In this recipe, we will mainly be looking at querying an XML document using LINQ to XML. We have used LINQ to XML to write to an XML file in the A library that reads and writes to an XML file recipe.

Get .NET Standard 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.