How to convert jquery collection to xml string for an ajax request
<p>I created a jquery collection that stores xml as follows:</p>

<pre><code>var rh_request = $('&lt;request/&gt;')
 .attr('user_id', user_id)
 .attr('company_id', company_id)
 .attr('action', 'x');
</code></pre>

<p>I want to post it to my server via an ajax request as follows:</p>

<pre><code>$.ajax({
 type: "POST",
 url: mywebsiteURL,
 processData: false,
 dataType: "xml",
 data: rh_request.html(),
 success: mycallbackfunction
});
</code></pre>

<p>My problem is that the "data" parameter of the ajax call needs a string version of the xml and it seems neither Jquery's .html() or .text() function yields this. I have older code that used straight javascript to form the outgoing xml and calling the DOM .xml() function yielded a string that worked. How is this done with a jquery collection???</p>
