Chapter 11. Common LINQ to XML scenarios
This chapter covers:
- Building objects from XML
- Creating XML from objects
- Creating XML from data in a database
- Creating XML from a CSV file
Now that we’ve learned about the LINQ to XML API and seen how to query and transform XML using LINQ to XML, it’s time to explore some common scenarios that you may come across when working with LINQ to XML. These include building objects from XML, creating XML from a set of objects, creating XML with data from a database, filtering and mixing data from a database with XML data, updating a database with data read from an XML file, and transforming text files into XML using LINQ to XML. As we explore these common scenarios, you’ll witness the powerful capabilities ...