Originally Posted by agile
i am new to c# and xml. i have made a xml file by c# where the tags are Information,Fname,Lname,Username.
now i want to read value from Fname tag and set the value in a text box.
i also want to read value from Lname tag and set the value in a text box
how can i do this.
XmlDocument xDoc = new XmlDocument();
XmlNodeList Fname = xDoc.GetElementsByTagName("Fname");
XmlNodeList Lname = xDoc.GetElementsByTagName("Lname");
textBox1.Text = Fname.InnerText;
textBox2.Text = Lname.InnerText;