//解析为list --已测试通过
List<KeyValuePair<string, string>> lists = new List<KeyValuePair<string, string>>();
var nodes = System.Xml.Linq.XElement.Parse(selectJobXml);
foreach (var p in nodes.Elements())
{
lists.Add(new KeyValuePair<string, string>(p.Element("name").Value, p.Element("value").Value));
}
//未测试
var dic = new Dictionary<string,string>();
var nodes = System.Xml.Linq.XElement.Parse(selectJobXml);
foreach (var p in nodes.Elements())
{
dic .Add(p.Element("name").Value, p.Element("value").Value);
}