Hi every one I have a parsing RSS question.
Current, I am able to parse the RSS XML on the news web, and display it in the UITableViewCell. I parse the description tag which is:
<description><![CDATA[ <a href="http://vnexpress.net/gl/xa-hoi/2012/05/thuy-dien-song-tranh-de-bi-lo-sut-dat-1/"><img src="http://vnexpress.net/Files/Subject/3b/bd/66/e0/sat-lo-dat-Song-Tranh-2.jpg"></a>this is new<BR />></description>
The problem now that I how can I just get out the text inside this tag? Currently it display everything inside the description tag, which is:
<![CDATA[ <a href="http://vnexpress.net/gl/xa-hoi/2012/05/thuy-dien-song-tranh-de-bi-lo-sut-dat-1/"><img src="http://vnexpress.net/Files/Subject/3b/bd/66/e0/sat-lo-dat-Song-Tranh-2.jpg"></a>this is new<BR />>
I just want the plain text to be displayed:
this is new
And I also wanna get the image in this description tag so I can display it:
<img src="http://vnexpress.net/Files/Subject/3b/bd/66/e0/sat-lo-dat-Song-Tranh-2.jpg">
. Please tell me how? Thanks in advance.
I had to do this before. so I will paste the code I used here.