Languages

Menu
Sites
Language
Xml parsing for CData Value

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

Responses

2 Replies
muditha murthy

Look at the sample app XMLParserApp provided in SDK.

y Rajyalakshmi

Hi muditha murthy,

Thanks for your response. I had tried that way. But i can read the data of above part. but the content what I need unable to read. please help me.

How can we read the data with empty spaces before that data.

Thanks

Rajyalakshmi