how to get connection string from xml file in c# -
var x = XElement.Parse(@"<?xml version=""1.0"" standalone=""yes""?><connectionString><conn>adsf</conn></connectionString>");
// or var x = XElement.Load(@"c:\temp\my.xml");
var s = x.Element("conn").Value;