title: PHP XML DOM unwanted escaping characters, i cannot write &qnot;
body: <p>i'm having a problem with </p>
  
  <pre><code>$xml2 = new DOMDocument;
  $xml2-&gt;load($FilenamePost."/".$FilenameOfThePost.'.xml');
  
  /* filename.xml */
  $xpath2 = new DOMXPath($xml2);
  $hrefs2 = $xpath2-&gt;evaluate("/page");
  
  $Title = str_replace("-==single-quote==--"," &amp;quot; ",$Title);
  $Title = str_replace('-==double-quote==--',' &amp;quot; ',$Title);
  
  $Title = str_replace('&amp;amp;quot;',' &amp;quot; ',$Title);
  
  $Title = "Sssa &amp;quot;";
  
  $href2 = $hrefs2-&gt;item(0);
  $href2-&gt;setAttribute("PostTitle",$Title);
  
  $xml2-&gt;save($FilenamePost."/".$FilenameOfThePost.'.xml');
  
  /*
  And when i try to write 
  &amp;quot; 
  in my xml, it keeps showing 
  &amp;amp;quot;
  */
  </code></pre>
  
  <p>WHY IS THIS??? I cannot find a logical explication ...</p>