Writing to xml

ok i know someone knows how to do this.

i need a basic form that maybe has 4 variables and then once submitted will write to an xml file.

i understand how to display the xml, but i need a client friendly form to write to it.

anyone??