title: jQuery and XML (with CDATA)
body: <p>I've seen the post that deal with this issue but I still can't solve my issue:</p>
  
  <p>I've got XML with CDATA and when I parse the XML, it includes the CDATA (which I don't want).</p>
  
  <p>XML sample: </p>
  
  <p>
   </p>
  
  <pre><code>&lt;mainnav&gt;
      &lt;nav path="/" xmlpath="home.xml" key="footer" navigator=""&gt;
          &lt;display&gt;&lt;![CDATA[Home]]&gt;&lt;/display&gt;
          &lt;title&gt;&lt;![CDATA[Home]]&gt;&lt;/title&gt;
      &lt;/nav&gt;
  
      &lt;nav path="/nav1/" xmlpath="nav1.xml" key="primary" navigator="primary" iconid="0"&gt;
          &lt;display&gt;&lt;![CDATA[Nav 1]]&gt;&lt;/display&gt;
          &lt;title&gt;&lt;![CDATA[Nav 1]]&gt;&lt;/title&gt;
          &lt;overdesc&gt;&lt;![CDATA[test nav 1]]&gt;&lt;/overdesc&gt;
  
          &lt;sub path="/nav1/sub1/" xmlpath="nav1/sub1.xml" key="sub"&gt;
              &lt;display&gt;&lt;![CDATA[sub 1&lt;br /&gt;of nav 1]]&gt;&lt;/display&gt;
              &lt;title&gt;&lt;![CDATA[sub 1&lt;br /&gt;of nav 1]]&gt;&lt;/title&gt;
          &lt;/sub&gt;
  
      &lt;/nav&gt;
  
  
      &lt;nav path="/nav1/" xmlpath="nav2.xml" key="primary" navigator="primary" iconid="1"&gt;
          &lt;display&gt;&lt;![CDATA[Nav 2]]&gt;&lt;/display&gt;
          &lt;title&gt;&lt;![CDATA[Nav 2]]&gt;&lt;/title&gt;
          &lt;overdesc&gt;&lt;![CDATA[test nav 2]]&gt;&lt;/overdesc&gt;
  
          &lt;sub path="/nav2/sub1/" xmlpath="nabv2/sub1.xml" key="sub"&gt;
              &lt;display&gt;&lt;![CDATA[sub 1&lt;br /&gt;of nav 2]]&gt;&lt;/display&gt;
              &lt;title&gt;&lt;![CDATA[sub 1&lt;br /&gt;of nav2]]&gt;&lt;/title&gt;
          &lt;/sub&gt;
  
      &lt;/nav&gt;
  
  &lt;/mainnav&gt;
  </code></pre>
  
  <p></p>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function(){
  $.ajax({
      type: "GET",
      url: "site_xml/config.xml",
      //contentType: "text/xml",
      dataType: ($.browser.msie) ? "xml" : "text/xml",
      success: parseXML,
      error: function(XMLHttpRequest, textStatus, errorThrown) {
          alert(errorThrown);
      }
  });});
  
  function parseXML(xml) {
  $(xml).find('nav').each(function(){
       if ($(this).attr("key")=="primary") { // this is a primary nav item;
          var title = $.trim( $(this).find('title').text() );
          alert(title);
          $("#output").append(title); //nothing showing up in my output DIV, presumably due to the CDATA tags?
       }
  }); 
  </code></pre>
  
  <p>}</p>