title: Getting cdata content while parsing xml file
body: <p>I have an xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xml&gt;
      &lt;events date="01-10-2009" color="0x99CC00" selected="true"&gt; 
         &lt;event&gt;
              &lt;title&gt;You can use HTML and CSS&lt;/title&gt;
              &lt;description&gt;&lt;![CDATA[This is the description ]]&gt;&lt;/description&gt;
          &lt;/event&gt;
      &lt;/events&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>I used xpath and and xquery for parsing the xml.</p>
  
  <pre><code>$xml_str = file_get_contents('xmlfile');
  $xml = simplexml_load_string($xml_str);
  if(!empty($xml))
  {
      $nodes = $xml-&gt;xpath('//xml/events');
  }
  </code></pre>
  
  <p>i am getting the title properly, but iam not getting description.How i can get  data inside
  the cdata</p>