For reading XML node, and it's value the best answer is to use XMLPaht:



Code:
XDocument xDoc = XDocument.Parse(xml);
      var elem = (from xElem in xDoc.Root.Elements()
                  where xElem.Name == "DemoXML"
                  select xElem).First();
 
      // The best!!!
      // MSDN recommended
      // using System.Xml.XPath;
      var res1 = xDoc.Root.XPathSelectElement("MyData/Name");
...