title: Change case of nodes in imported XML file via PHP preg_replace
body: <p>I'm trying to process an imported XML file and make the text in one of the nodes</p>
  
  <pre><code>&lt;Name&gt;SOMETHINGTOMAKELOWERCASE&lt;/Name&gt;
  </code></pre>
  
  <p>lowercase</p>
  
  <pre><code>&lt;Name&gt;somethingtomakelowercase&lt;/Name&gt;
  </code></pre>
  
  <p>So far I got:</p>
  
  <pre><code>$xml = file_get_contents($xmlfile);
  $xml = preg_replace('/&lt;Name&gt;(.*)&lt;\/Name&gt;/e', '&lt;Name&gt;' . strtolower($1) . '&lt;/Name&gt;',$xml); 
  fwrite(fopen($xmlfile, 'wb'), $xml);
  </code></pre>
  
  <p>I've tried about ten different versions of the regexp, but none of them will work. Could you please point me in the right direction as to the correct regexp?</p>