how to get connection string from xml file in csharp

Code Example - how to get connection string from xml file in csharp

                
                        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;