jquery - How can I insert data into an xml file -


i trying create simple html form inserts data xml file. files stored on cloud server google drive. page use jquery , possibly ajax if necessary. form should xsl style sheet (seperate file nice). main concern how insert data xml file. looking tips , if create sample can see should done. avoid database if possible.

here sample xml of data need insert. help!!

    <?xml version="1.0" encoding="utf-8" standalone="yes"?> <data-set xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">     <record>         <timestamp>01/01/2015</timestamp>         <acceptance1>y</acceptance1>         <acceptance2>y</acceptance2>         <fname>tom</fname>         <lname>smith</lname>         <address>123 smith avenue</address>         <city>nowhere</city>         <state>ca</state>         <zip>90210</zip>         <email>abc@yahoo.com</email>         <phone>1234564561</phone>         <date>01/01/2015</date>         <memberagreement>y</memberagreement>         <acceptance3>y</acceptance3>         <librarypolicy>y</librarypolicy>         <acceptance4>y</acceptance4>         <lendinglibrary>y</lendinglibrary>         <paymenttype>check</paymenttype>     </record> </data-set> 

you mean this:

$(xml).find("data-set").find("record").append("<secondname>vardens</secondname>"); 

Comments