I have some problems with parsing of xml in my iPhone Application. Here is some part of xml code that I want to parse with standard NSXMLParser parser.
<item>
<title>AMNews: Facebook & Twitter Updates Might Lead To Burglary, Oldham School Violates DPA, Amazon Cloud “Burstsâ€</title>
<link>http://www.itproportal.com/2011/04/22/amnews-facebook-twitter-updates-might-lead-to-burglary-oldham-school-violates-dpa-amazon-cloud-bursts/</link>
<description>People announcing their holiday plans on social networking platforms like Facebook and Twitter are putting themselves at risks from thieves and burglars. A new study ha</description>
<author>ravimandalia@itproportal.com (Ravi Mandalia)</author>
<pubDate>Fri, 22 Apr 2011 08:19:36 +0100</pubDate>
<guid>http://cdn.itproportal.com/photos/facebook-logo-4_thumb80x80.png</guid>
</item>
How you can see in
<title>AMNews: Facebook & Twitter Updates Might Lead To Burglary, Oldham School Violates DPA, Amazon Cloud “Burstsâ€</title>
title tag some strange symbols appear ““” “â“. In function
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string;
I am trying to get title and save it, but my parser works wrong. Parser take only text after ““” symbol !!!
What can I do and can anybody tell me what happens with parse ? Thanks a lot !!!
Here is implementation of
-parser:foundCharacters:I have notice that parser get title two times at first time from the begin to the “ and second time from “ to end. Like in my feed there are two title tags.