Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

donaghy

macrumors member
Original poster
Aug 6, 2009
49
0
Hi all, I'm reading the response of NSURLConnection into a NSData object. However the xml is not being created correctly, the characters < and > are being replace with < and &gt. How can i replace this characters in the NSData object with the correct characters?

cheers.
 
Ok i've got a working fix. I converted the NSData to a NSMutableString and called my method for replacing the characters, setting NSMutableString to the new correct data format. I then converted NSMutableString to NSData and then parsed.

I dont particularly like the way i've done it, it doesnt seem fool proof to me so if anyone can point out a better method it would be appreciated.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.