LINQ

How to use LINQ to work with XML (Visual Studio 2008)

Note: I still use VS 2008 for software development, as do several developers out there working for large corporate entities that are much slower to upgrade technologies. I’ve only really tested LINQ with VS 2008, although it is possible it might work the same way with newer versions.

LINQ, or Language-Integrated Query is a .NET Framework component that adds native querying capability to .NET languages. LINQ with XML lets you work with XML documents very easily. I like to use the LINQ to XSD Preview for my XML work in VS 2008. The LINQ to XSD Preview is basically a project that provides typed XML programming support on top of the existing LINQ to XML framework. With this, you can generate classes for your XML objects defined in a XSD.

(more…)