I currently have a C# program that writes data to an XML file in using the .NET Framework.
if (textBox1.Text!=\"\" && textBox2.Text != \"\") { X
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/