title: Replace xml nodes and attributes with php
body: <p>I have a "<strong>stuff.xml</strong>" file which basically looks like this:</p>
  
  <pre><code>      &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;mystuff&gt;
          &lt;pic id="pic1" _level="1" _xpos="50" _ypos="50" _width="150" _height="150"&gt;
             image.jpg
          &lt;/pic&gt;
      &lt;/mystuff&gt;
  </code></pre>
  
  <p>And what I need is three php files: "<strong>image.php</strong>", "<strong>pos.php</strong>", and "<strong>size.php</strong>" which basically replace values in the "<strong>stuff.xml</strong>" file when executed. </p>
  
  <p>Please help me. Thank you very much in advanced.</p>