title: PHP generated XML shows invalid Char value 27 message
body: <p>I am generating XML using PHP library as below:</p>
  
  <pre><code>$dom = new DOMDocument("1.0","utf-8");
  </code></pre>
  
  <p>Doing above results in a page which shows a message on top of the output.</p>
  
  <p><strong>This page contains the following errors:
  error on line 16 at column 274505: PCDATA invalid Char value 27
  Below is a rendering of the page up to the first error.</strong></p>
  
  <p>I have tried rectifying using Tidy library.. used iconv to get the chinese character in UTF-8.</p>