title: PHP DomDocument, append element of a page to another
body: <p>I have a php script for generate a shop.</p>
  
  <p>So, first i retrieve my html page with dom document :</p>
  
  <pre><code>$oPage = new webHTML("boutique_panier_HTML");
  $oInter = $oPage-&gt;getElementById("inter");
  </code></pre>
  
  <p>webHTML() is just a custom DomDocument class. So, i retrieve my principal div (inter) and i do some treatments into this div before <code>return $oPage-&gt;saveHTML();</code></p>
  
  <p>So, for now, it's ok.</p>
  
  <p>I need to load another page, retrieve an element (form) and put this element on my <code>$oInter</code>.</p>
  
  <p>So, juste before <code>return $oPage-&gt;saveHTML();</code>, i do :</p>
  
  <pre><code>$oPage2 = new webHTML("formulaire_bon_commande");
  $oInter2 = $oPage2-&gt;getElementsByTagName("form");
  $oInter-&gt;appendChild($oInter2);
  </code></pre>
  
  <p>So, i load the page "formulaire_bon_commande", i retrieve my element form, and i try to append this element to my $oInter div.</p>
  
  <p>And with this code, i have just a white page... No effect. Any ideas ?</p>