It's common that we'll read data from xml files.

However, we may read xml string in our project. For example, you may like to use this feature if your project has using 'XML PATH' clause in SQL SERVER which will create a xml string. There's little document for examples of reading xml string data using C#. I'll provide one example will has been used in my project for Microsoft.

    class Program
    {
        static void Main(string[] args)
        {
            XmlDocument doc = new XmlDocument();

            string testStr = "url.Url 4/9/2010 11:20:33 PMurl.Url 4/10/2010 1:37:18 AMurl.Url 4/10/2010 1:57:39 AMurl.Url 4/10/2010 1:57:53 AMurl.Url 4/10/2010 1:59:15 AMurl.Url 4/11/2010 7:42:03 PM";

            doc.LoadXml(testStr);

            XmlNode root = doc.DocumentElement;
            IEnumerator ienum = root.GetEnumerator();
            XmlNode node;

            while (ienum.MoveNext())
            {
                node = (XmlNode)ienum.Current;
                Console.WriteLine(node.FirstChild.OuterXml);
                Console.WriteLine();
            }

        }
    }

It's very convenient to use this method with C# project. Easy and simple.
Good Luck!

Created by Knight