Click here to Skip to main content
15,891,409 members
Articles / Programming Languages / XML

LINQ to XML

Rate me:
Please Sign up or sign in to vote.
4.72/5 (71 votes)
14 Mar 2008CPOL8 min read 331.8K   4.9K   149  
An exploration of LINQ and XML in .NET Framework 3.5.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqToXML
{
    class Program
    {
        static void Main(string[] args)
        {
            // Methods for LINQ discussion
            //LinqSamples.LambaExpressions();
            //LinqSamples.VarDemo();
            //LinqSamples.LambaExpressionsWithDelegates();

            // Methods for extension methods discussion
            //ExtensionDemo.Demo();

            // Methods for older XML methods discussion
            //OldWay.CreateEmployees();
            //OldWay.GetElments();

            // Methods for new XML methods discussion
            //NewWay.CreateEmployees();
            //NewWay.SingleEmployee();
            //NewWay.LoadEmployees();
            //NewWay.WithNamespace();
            //NewWay.ExplictCast();
            //NewWay.WithNamespaceWithPrefix();
            //NewWay.TraverseTree();
            //NewWay.CreateFromQuery();
            //NewWay.Transform();

            Console.ReadLine();
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions