Xml parsing for CData Value

Xml parsing for CData Value

BY 14 Oct 2013 Native Application Development

Hi,

in the below xml I have to use only CData(bold and italic content).

I have tried so many ways. Please give me sample code to retive CData value in a xml.

 

<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<!– This is a comment –>
 <rss version=”2.0″ xmlns:dc=”http://purl.org/dc/elements/1.1/” xmlns:sy=”http://purl.org/rss/1.0/modules/syndication/” xmlns:admin=”http://webns.net/mvcb/” xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:content=”http://purl.org/rss/1.0/modules/content/”>
 <channel>
  <description>A daily word of exultation.</description>
  <dc:language>en-us</dc:language>
<item>
  <title>Proverbs 19:20-21</title>
  <description>Verse of the day</description>
  <guid isPermaLink=”false”>http://www.biblegateway.com/passage/?search=Proverbs+19%3A20-21&version=NIV</guid>
 <content:encoded>
     <![CDATA[ &ldquo;Listen to advice and accept discipline, and at the end you will be counted among the wise.   Many are the plans in a person�s heart, but it is the LORD�s purpose that prevails.&rdquo;<br/><br/> Brought to you by <a href=”http://www.biblegateway.com”>BibleGateway.com</a>. Copyright (C) . All Rights Reserved.
  ]]>

  </content:encoded>
  </item>
  </channel>
  </rss>

 

Thanks

Rajyalakshmi

Written by