I have read the xml doc using the below statements
XDocument seatxml = XDocument.Load(Environment.CurrentDirectory +"/File.xml");
now I need to read the values how can I achieve this.XDocument seatxml = XDocument.Load(Environment.CurrentDirectory +"/File.xml");
now I need to read the values how can I achieve this.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 Jul 15, 2012, 11:40 PM
you can read node using selectNode method
XmlDocument doc = new XmlDocument();
doc.Load("file.xml");
foreach (var xml in doc.SelectNodes("Test"))
{
//xml.
}
but without your requirement i can not help you.
so please share xml and some more about your requirement.
hopr this will help you.