title: XML Parsing Error: undefined entity - special characters
body: <p>Why does XML display error on certain special characters and some are ok?</p>
  
  <p>For instance, below will create error,</p>
  
  <pre><code>&lt;?xml version="1.0" standalone="yes"?&gt;
  &lt;Customers&gt;
      &lt;Customer&gt;
          &lt;Name&gt;L&amp;ouml;ic&lt;/Name&gt;
      &lt;/Customer&gt;
  &lt;/Customers&gt;
  </code></pre>
  
  <p>but this is ok,</p>
  
  <pre><code>&lt;?xml version="1.0" standalone="yes"?&gt;
  &lt;Customers&gt;
      &lt;Customer&gt;
          &lt;Name&gt;&amp;amp;&lt;/Name&gt;
      &lt;/Customer&gt;
  &lt;/Customers&gt;
  </code></pre>
  
  <p>I convert the special character through php - <code>htmlentities('Löic',ENT_QUOTES)</code> by the way.</p>
  
  <p>How can I get around this?</p>
  
  <p>Thanks.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I found that it works fine if I use numeric character such as <code>L&amp;#243;ic</code></p>
  
  <p>now I have to find how to use php to convert special characters into numeric characters!</p>