2011-01-21, 10:09:50
Hi,
I am using GetSimple and wish to add some functionality but cannot get my think head around some XML stuff.
I have an order form (to request some stuff from teh wbsite) and wish to save the data from the form into a XML file which will include several orders:
<orders>
<order>
<title>Mr</title>
<fname>Fred</fname>
<lname> etc.....
</order>
<order>
...
</order>
<order>
...
</order>
</orders>
How do I read the existing file in to an xml tree, and then append a new <order> ... </order> node (with data supplied from the web form), and save the file?
I think this must be straightforward but extensive googling ahs notg turned up the correct place
Any help here? Thanks in advance.
I am using GetSimple and wish to add some functionality but cannot get my think head around some XML stuff.
I have an order form (to request some stuff from teh wbsite) and wish to save the data from the form into a XML file which will include several orders:
<orders>
<order>
<title>Mr</title>
<fname>Fred</fname>
<lname> etc.....
</order>
<order>
...
</order>
<order>
...
</order>
</orders>
How do I read the existing file in to an xml tree, and then append a new <order> ... </order> node (with data supplied from the web form), and save the file?
I think this must be straightforward but extensive googling ahs notg turned up the correct place
Any help here? Thanks in advance.