Source: StackOverflow: URL:
http://stackoverflow.com/questions/6530090/how-to-save-the-string-variable-data-to-xml-filetry this:
protected void Button1_Click(object sender, EventArgs e)
{
using (StreamWriter fsWrite = new StreamWriter(@"F:/info.xml"))
{
fsWrite.WriteLine("<ROOT>" +
"<SIGN>1155</SIGN>" +
"<MAXLOOP>23</MAXLOOP>" +
"<TOTTAL_REC>5645</TOTTAL_REC>" +
"<PART_EXPORT>retert</PART_EXPORT>" +
"<LEAVE_EXPORT>retr</LEAVE_EXPORT>" +
"<SAL_TDS_EXPORT>rter</SAL_TDS_EXPORT>" +
"<HR_DET_EXPORT>rete</HR_DET_EXPORT>" +
"<SELECTIONWISE>ertre</SELECTIONWISE>" +
"</ROOT>");
}
}