how to write content in an existing .xml file which is totally empty? I am creating a new file named newXML.xml and storing its path in a string as follows:
File.Create(Application.StartupPath + @"newXML.xml");
string path=Application.StartupPath + @"newXML.xml";
now i have some xml data with xml tags and i want to store these datas into a string and write those datas into the new file that i have created with the name newXML.xml.
The data that i want to store in string is as follows...
<configuration>
<system.runtime.remoting>
<application name="Server">
<client>
</client>
</application>
</system.runtime.remoting>
</configuration>
How can i do this?