title: Post XML data from jQuery to two PHP scripts
body: <p>I'm sending XML data from jQuery by Ajax to first PHP script. It works fine. </p>
  
  <p>jQuery - Ajax</p>
  
  <pre><code>open('POST', 'get_and_send_XML.php',  { xml: newXmlString1 }, '_blank');
  </code></pre>
  
  <p>get_and_send_XML.php</p>
  
  <pre><code> $data = $_POST['xml'];
   $fh = fopen('first.txt', 'w') or die("Can't create file");
   fwrite($fh,  $data);
   fclose($fh);
  
   curl_setopt($ch, CURLOPT_URL,"http://domain.com/second.php");
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, "xml=". $data );
  </code></pre>
  
  <p>second.php</p>
  
  <pre><code> $data = $_POST['xml'];
   $fh = fopen('second.txt', 'w') or die("Can't create file");
   fwrite($fh,  $data);
   fclose($fh);
  </code></pre>
  
  <p>But then I need send this XML data from this first PHP script, to another second PHP script by cURL. But in the second PHP script XML data don't look the same. Html chats are changed.</p>
  
  <p>How to solve this problem ?</p>