var xmlSource = XElement.Load(C:\\TestDataBaseManager\\Diag_Congiuration.xml");
var xList = xmlSource.Elements(@"Standard_Error");
List<string> stopList = new List<string>();
foreach (var x in xList)
{
if (x == null)
{
continue;
}
var stopmode = x.Element("stopmode");
var value1 = stopmode.Element("value1");
var value2 = stopmode.Element("value2");
stopList.Add(value1.Value.ToString());
stopList.Add(value2.Value.ToString());
}