title: How i can edit a xml file using DOMDocument and xquery
body: <p>I have a xml file</p>
  
  <pre><code>&lt;events date="06-11-2010"&gt;
      &lt;event id="8"&gt;
        &lt;title&gt;Proin porttitor sollicitudin augue&lt;/title&gt;
        &lt;description&gt;&lt;![CDATA[Lorem  nunc.]]&gt;&lt;/description&gt;
      &lt;/event&gt;
    &lt;/events&gt;
    &lt;events date="16-11-2010"&gt;
      &lt;event id="4"&gt;
        &lt;title&gt;uis aliquam dapibus&lt;/title&gt;
        &lt;description&gt;&lt;![CDATA[consequat vel, pulvinar.&lt;/createCDATASection&gt;&lt;/description&gt;
      &lt;/event&gt;
    &lt;event id="1"&gt;&lt;title&gt;You can use HTML and CSS&lt;/title&gt;
    &lt;description&gt;&lt;![CDATA[Lorem ipsum dolor sit amet]]&gt;&lt;/description&gt;&lt;/event&gt;&lt;/events&gt;
  </code></pre>
  
  <p>How i can edit the xml file with respect to <code>id</code> using DOMDocument and xquery for preserving <code>CDATA</code> Thanks in advance</p>
  
  <p>link text     </p>