title: How to post XML to server thru HTML form?
body: <p>I have to post data from my HTML form to server in xml format, something like:</p>
  
  <pre><code>&lt;some_parameters&gt;
      &lt;firstname&gt;Homer&lt;/firstname&gt;
      &lt;lastname&gt;Simpson&lt;/lastname&gt;
      &lt;street&gt;74 Evergreen Tr.&lt;/street&gt;
  &lt;/some_parameters&gt;
  </code></pre>
  
  <p>All I know is it goes to one of the CRM applications run on different domain. Now I'm not sure what is the best way to do this. </p>
  
  <p>I was thinking of just wrapping values of fields in my form when user submits the form. So if user typed "Homer" in "firstname" field and clicks submit, my JS would change the value of the field to <code>&lt;firstname&gt;Homer&lt;/firstname&gt;</code> and then post the data. </p>
  
  <p>If it helps I'm using jQuery on client side. I think there must be the better way as my solution would break with JS disabled and seems a bit dodgy so if you could point me in the right direction that would be awesome.</p>