XML C# Tutorial

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.XPath;
class MainClass
{
    static void Main(string[] args)
    {
        string xml = "" +
                        "" +
                            "Some widget part" +
                            "12.99" +
                        "
" +
                        "" +
                            "Another widget" +
                            "50.12" +
                        "
" +
                    "
";
        XmlDocument doc = new XmlDocument();
        doc.LoadXml(xml);
        XPathNavigator nav = doc.CreateNavigator();
        Console.WriteLine("Total price for this order is ${0}", nav.Evaluate("sum(Order/Item/Price)"));
    }
}
Total price for this order is $63.11