using System;
using System.Xml;
class MainClass
{
static void Main(string[] args)
{
XmlTextWriter writer = new XmlTextWriter("C:\\xmlWriterTest.xml", null);
writer.WriteStartDocument();
// Write next element
writer.WriteStartElement("FirstName","");
writer.WriteString("Mahesh");
writer.WriteEndElement();
// Ends the document.
writer.WriteEndDocument();
writer.Close();
return;
}
}