Writing XML to a file without overwriting previous data

前端 未结 4 1231
北荒
北荒 2020-12-04 00:00

I currently have a C# program that writes data to an XML file in using the .NET Framework.

if (textBox1.Text!=\"\" && textBox2.Text != \"\")
{
    X         


        
4条回答
  •  遥遥无期
    2020-12-04 00:24

    Just to add to Darin's answer, here is an article that I was getting ready to include in my own answer as a good reference for how to use XDocument to append nodes to an existing XML document:

    http://davidfritz.wordpress.com/2009/07/10/adding-xml-element-to-existing-xml-document-in-c/

提交回复
热议问题