title: Writing to an XML file in the source directory of Flex project?
body: <p>I am writing to an XML file which is placed in the src directory of my Flex project. But when I run my application, the changes I make to that XML file actually reflects in the copy of that XML file in my C:\wamp\www\myProject-debug\myXML.xml.</p>
  
  <p>Is  there a way to reflect those changes to the actual xml file i.e. the one in the src directory?</p>
  
  <p>Server Side: PHP </p>
  
  <p>PHP file is in the same src folder. Here is the related snippet of code:</p>
  
  <pre><code>.
  .
  $xdoc = new DomDocument("1.0");
  $xdoc-&gt;Load('myXML.xml');
  
  $xdoc-&gt;preserveWhiteSpace = false;
  $xdoc-&gt;formatOutput = true;
  
  $xcurrUsers=$xdoc-&gt;getElementsByTagName('currentUsers')-&gt;item(0);
  $xuser=$xdoc-&gt;createElement('user');
  $xcurrUsers-&gt;appendChild($xuser);
  .
  .
  $xdoc-&gt;save("myXML.xml");
  </code></pre>