title: Replace element value in XML php
body: <p>Hey I am looking for a way to replace an element value with another. What I have in mind is when a variable is equal to "Assassin's Creed: Brotherhood", this value is replaced by a new one. My project is developed with simplexml ( add, delete) but DOM is appreciated too. Thank you for your help!</p>
  
  <p>My XML is</p>
  
  <p>
  </p>
  
  <pre><code>&lt;Game type="adventure"&gt;
  &lt;TITLE&gt;Assassin's Creed: Brotherhood&lt;/TITLE&gt;
  &lt;PUBLISHER&gt;Ubisoft&lt;/PUBLISHER&gt;
  &lt;/Game&gt; 
  </code></pre>
  
  <p></p>