creating and sending a XML document in jQuery
<p>I have a website where users can enter some information in tables. By clicking a button, these information should be stored in a XML document and send with AJAX.</p>

<p>I've already tried this to create a XML document, but it isn't working out.</p>

<pre><code>var xmlDoc = '&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;';
xmlDoc.append('&lt;customer&gt;&lt;/customer&gt;');
</code></pre>

<p>How do I create a XML document and append further nodes and set attributes?</p>
