Answers for "how to get connection string from xml file in c#"

C#
0

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;
Posted by: Guest on March-14-2022

Code answers related to "how to get connection string from xml file in c#"

C# Answers by Framework

Browse Popular Code Answers by Language