title: POSTing XML via HTML Forms
body: <p>I am developing a web and want to make it so that the user can create some stuff POSTing XML data. For that purpose there is a <code>&lt;textarea&gt;</code> where the user can write (copy/paste) XML and submit it. The problem is that I am losing data: characters such as <code>&lt;</code>, <code>&gt;</code>, and I think others too, get lost.</p>
  
  <p>Maybe it is a framework problem, not sure, I am using Elgg and receiving the data with <code>get_input()</code>.</p>
  
  <p><strong>UPDATE1</strong>: some code answering the comment:</p>
  
  <pre><code>&lt;form method="POST" action="http://for.bar/slash" enctype="text/xml"&gt;
  &lt;input name="add" type="submit" value="Create"  /&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>to receive the data I use <code>elgg get_input()</code></p>
  
  <pre><code>$data = get_input('data');
  </code></pre>