title: Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Entity 'laquo' not defined in Entity
body: <p>I intrecept  server's response using xml,xsl and extract required fragments, to extract html fragments from server reponse on client requrest. For example, lets suppose, that $content have server response, before we process it.</p>
  
  <pre><code>    $dom = new domDocument();
      $dom-&gt;loadXML($content);
      $xslProgram = &lt;&lt;&lt;xslProgram
  &lt;xsl:stylesheet version='1.0'
   xmlns:xsl='http://www.w3.org/1999/XSL/Transform'&gt;
  
  &lt;xsl:output method="html" encoding='UTF-8' indent="yes" /&gt;
  
  &lt;xsl:template match="/"&gt;
      &lt;xsl:copy-of select="$select" /&gt;
  &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  xslProgram;
  
      $domXsl = new domDocument();
      $domXsl-&gt;loadXML($xslProgram);
      $xsl = new XSLTProcessor();
      $xsl-&gt;importStylesheet($domXsl);
  
      $content = $xsl-&gt;transformToXml($dom);
  </code></pre>
  
  <p>It looks like everything is working correct, but when it detects &amp;nbsp, &amp;laquo, &amp;raquo, etc, there is a message appears  "Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Entity 'laquo' not defined in Entity"</p>
  
  <p>At first I just replaced all this elements (&amp;nbsp and others) with their unicode equiavalents ( str_replace), but then I understand that I can't consider all this variants. How can I solve this problem?</p>
  
  <p>Let me know if you don't undestand me, I can write better explanation.</p>
  
  <p>Thanks, Ahmed.</p>