XElement root = new XElement("Root", new XAttribute("Attr", "abcde") ); Console.WriteLine(root); string str = (string)root.Attribute("Attr"); Console.WriteLine(str);
add
from item in configurationFile.Descendants("environment").Descendants("add") select (string)item.Attribute("key");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)