using System;
using System.Xml.Linq;
namespace TestConsoleApplication
{
internal class Program
{
private static void Main(string[] args)
{
var xml = "<?xml version='1.0' encoding='UTF-8' ?><root><akk>name4</akk><ud>43</ud><sa>crag</sa></root>";
var doc = XDocument.Parse(xml);
var rootElmnt = doc.Element("root");
var akkElmnt = rootElmnt.Element("akk");
var akk = akkElmnt != null ? akkElmnt.Value : null;
var udElmnt = rootElmnt.Element("ud");
var ud = udElmnt != null ? udElmnt.Value : null;
var saElmnt = rootElmnt.Element("sa");
var sa = saElmnt != null ? saElmnt.Value : null;
Console.Write(string.Format("akk={0}, ud={1}, sa={2}", akk, ud, sa));
Console.ReadKey();
}
}
}