I want to read above xml flie
how get bool Ver=true from above?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted May 2, 2013, 10:06 PM EDT
hi,
you have two way to retreive data.
try following code
var stringdata1 = File.ReadAllText(@"E:\eee.txt").Replace("\r\n", "");true ";" }, StringSplitOptions.None)[1].Split(new string[] { " " }, StringSplitOptions.None)[0];
//Read from file or hard code xml
//String xml = @"
string requValue = stringdata1.Split(new string[] { "
//Using XElement
var test = XElement.Parse(stringdata1)
.Descendants("version")
.First()
.Value;
hope this will help you.