C#: How to generate xsd and class for an XML document

Using xsd.exe which will be install with the Visual studio can be used.
Open Visual Studio Command Prompt and use the following commands

Setting environment for using Microsoft Visual Studio 2010 x86 tools.

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd C:\
C:\>xsd CPPData.xml
 Microsoft (R) Xml Schemas/DataTypes support utility
 [Microsoft (R) .NET Framework, Version 4.0.30319.1]
 Copyright (C) Microsoft Corporation. All rights reserved.
 Writing file 'C:\CPPData.xsd'.
C:\>xsd CPPData.xsd /classes
 Microsoft (R) Xml Schemas/DataTypes support utility
 [Microsoft (R) .NET Framework, Version 4.0.30319.1]
 Copyright (C) Microsoft Corporation. All rights reserved.
 Writing file 'C:\CPPData.cs'.
C:\>

C#: How to Select a random item from a List

</pre>
<img class="attachment-266x266 alignright" title="C#" src="http://tnvbalaji.files.wordpress.com/2012/09/c.png?w=99" alt="C#" width="99" height="99" />
<pre>
using System;
using System.Collections.Generic;

namespace RandomSelect
{
    class Program
    {
        static List lst = new List>();
        static void Main(string[] args)
        {
            lst.Add("1");
            lst.Add("2");
            lst.Add("3");
            lst.Add("4");
            lst.Add("5");
            lst.Add("6");
            lst.Add("7");
            lst.Add("8");
            lst.Add("9");
            lst.Add("10");

            Random rndElement = new Random();

            foreach (string i in lst)
            {
                string s = lst[rndElement.Next(lst.Count)];
                Console.WriteLine(s);
            }
        }
    }
}