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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted May 3, 2013, 2:06 AM
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.