title: How to save form input data to a XML file using Javascript?
body: <p>I want to save these form inputs in a file (e.g XML) in order to be able to use it later in  the form again:</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;form action="demo_form.asp"&gt;
              First name: &lt;input type="text" name="FirstName" value="Mickey"&gt;&lt;br&gt;
              Last name: &lt;input type="text" name="LastName" value="Mouse"&gt;&lt;br&gt;
              &lt;input type="submit" value="Submit"&gt;
          &lt;/form&gt;
  
          &lt;p&gt;Click the "Submit" button and the form-data will be sent to a page on the server called "demo_form.asp".&lt;/p&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What is the easiest way to achieve this? I can't use PHP or ASP.NET. </p>