I want to create an xml file to disk on button click of a form.it takes in data from within the form and adds it to the respective fields in the xml file.

my XML file contains the foll code

<?xml version="1.0"?>
<database server="WELLFLOWGULF;" name="TRA" userid="sa" password="sdsds">

on button click i want the "database server", "name", "userid", "password" to accept values from textboxes from within the form.I am new to this concept. it would be really helpful if someone can point me in the right direction. Noone seems to be answering any of my past threads. I had to figure them out on my own.

Read how to create xml elements using vb.net and saving it as xml document.