title: error in xml file while writing it?
body: <p>I am writing an XML file to a folder while writing a dot(.) gets append at the start of the XML tag due to which it throws me error while reading it.</p>
  
  <pre><code>$data = Yii::app()-&gt;CURL-&gt;run('http:// my ip address/project/API/getxml.php',FALSE,
          array(
              'id'=&gt;'75'
              )
          );
  
          thefile= Yii::app()-&gt;basepath."/../xml/new_api_test.xml";
          $openedfile = fopen($thefile, "w");
          fwrite($openedfile, $data);
          fclose($openedfile);
  </code></pre>