title: Passing DOMDocument between PHP and JQuery
body: <p>The problem is about communicating an object between PHP and JQuery.</p>
  
  <p>Performing <code>$.post</code> in JQuery, i want to retrieve a <code>DOMDocument</code> object generated in 'get_domdoc.php' and then be able to <code>$.post</code> it back to other PHP files, like:</p>
  
  <pre><code>    $.post("get_domdoc.php", {url: url}, function( domdoc )
      {
  
      //prepare 'domdoc' to $.post it - in a usable format - to another PHP file
  
      });
  </code></pre>
  
  <p>Is this possible? Appreciate any help.</p>