title: Send SimpleXmlElement via Curl using POST request
body: <p>How could I send <code>SimpleXmlElement</code> object via <code>Curl</code> using <code>POST</code> request type and receive <code>SimpleXmlElement</code> object back.</p>
  
  <p>I made two files on my local server and created object.</p>
  
  <p>URLs:</p>
  
  <ul>
  <li><code>http://someaddress/fileOne.php</code></li>
  <li><code>http://someaddress/fileTwo.php</code></li>
  </ul>
  
  <p>Object in from first file:</p>
  
  <pre><code>$Xml = new SimpleXMLElement( '&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;SomeXml&gt;&lt;/SomeXml&gt;' );
  $Translation = $Xml-&gt;addChild( 'Translation' );
  $Translation-&gt;addChild( 'Phrase', 'test' );
  </code></pre>
  
  <p>and now I would like to send this <code>$Xml</code> object via curl and parse it in other file and send back</p>
  
  <pre><code>$Xml = new SimpleXMLElement( '&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;SomeXml&gt;&lt;/SomeXml&gt;' );
  $Translation = $Xml-&gt;addChild( 'Translation' );
  $Translation-&gt;addChild( 'Phrase', "Got your phrase: $phrase" );
  </code></pre>
  
  <p>I would appreciate very much if you could provide code examples.
  Thanks everyone for help.</p>