Hi,
The Below code is for Creating a XML, here my problem is it creatinng only one record then we add another record means its replacing the previous record
I want to add multiple records in xml how?
xmlw = new XmlTextWriter("c:\\sun.xml", null);
xmlw.WriteStartDocument();
xmlw.WriteStartElement("Company");
xmlw.WriteStartElement("Skills");
xmlw.WriteElementString("Microsoft", textBox1.Text);
xmlw.WriteElementString("Sun", textBox2.Text);
xmlw.WriteEndElement();
xmlw.WriteEndElement();
xmlw.WriteEndDocument();
xmlw.Close();
MessageBox.Show("Records Added");