title: PHP simplexml Entities
body: <p>What's going one here?</p>
  
  <pre><code>$string = &lt;&lt;&lt;XML
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;album&gt;
          &lt;img src="002.jpg" caption="w&amp;aacute;ssup?" /&gt;
      &lt;/album&gt;
  XML;
  
  $xml = simplexml_load_string($string);
  // $xmlobj = simplexml_load_file("xml.xml"); // same thing
  
  echo "&lt;pre&gt;";
  var_dump($xml);
  echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 5: parser error : Entity 'aacute' not defined</p>
  </blockquote>