Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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:	empmy.xml");
var s = x.Element("conn").Value;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #connection #string #xml #file
ADD COMMENT
Topic
Name
7+4 =