storing form values in XML

Hi,
using HTML/Javascript, i am creating an online fruit store using which the user can select the fruits, the quantity etc and the final amount is displayed to the user. the new concept in this application is to store the user's selection in a XML file
this XML file is to be transmitted to a server to perform that does various processing.
for eg; in my form, i have a select tag with a number of options <select name="fruits">
<option> mango
<option> grapes
</select>

similarly i am using radio buttons to choose if the user prefers fruits or vegetables.
i want to know how to store the user's value in an XML file that is to be transmitted to the server.
thanks in advance
[767 byte] By [fip04] at [2007-11-18 17:25:02]