title: I can't generate a xml string correctly
body: <p>Im new in PHP, i'm trying to generate a string (near 6k characters) as XML format but the string does not generate correctly, i don't know what happen.</p>
  <p>Ex:</p>
  <pre><code>$xml = '&lt;a&gt; TEST &lt;/a&gt;'
  </code></pre>
  <p>Response: <code>'&lt;a&gt; TES'</code></p>
  <p>Any ideas?</p>