Expand|Select|Wrap|Line Numbers
- xmlw = new XmlTextWriter("c:\\testing.xml",null);
- xmlw.WriteStartDocument();
- xmlw.WriteStartElement("Company");
- xmlw.WriteStartElement("Software");
- xmlw.WriteStartElement("Skills");
- xmlw.WriteElementString("Microsoft", textBox1.Text);
- xmlw.WriteElementString("Sun", textBox2.Text);
- xmlw.WriteEndElement();
- xmlw.WriteStartElement("Management");
- xmlw.WriteElementString("Admin", textBox3.Text);
- xmlw.WriteElementString("Assist", textBox4.Text);
- xmlw.WriteEndElement();
- xmlw.WriteEndElement();
- xmlw.WriteEndElement();
- xmlw.WriteEndDocument();
- xmlw.Close();
1)after writing (xmlw.Close()) xml i want to display that xml in text box
2) I want to add multiple records in that xmlfile bcoz it creatinng only one record then we added another record means its replacing the previous record
I want to add multiple records in xml how?