title: decoding/encoding of special characters in XML
body: <p>I want to generate an xml page in php but I found the problem at decoding / encoding special characters for example <code>""&amp;eacute;""</code></p>
  
  <p>myCode :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;urlset xmlns="http://www.google.com/schemas/sitemap/0.84"&gt;
   &lt;url&gt;
      &lt;loc&gt; &amp;eacute; test &amp;egrave; &lt;/loc&gt;
      &lt;priority&gt;1.000&lt;/priority&gt;
      &lt;changefreq&gt;always&lt;/changefreq&gt;
   &lt;/url&gt;
  &lt;/urlset&gt;
  </code></pre>
  
  <p>but i get this message</p>
  
  <pre><code>This page contains the following errors:
  
  error on line 4 at column 19: Entity 'eacute' not defined
  Below is a rendering of the page up to the first error.
  </code></pre>