Posted By

g0re_k on 07/06/10


Tagged

cocoa xml iphone blank-spaces


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

umang_nine
rvachere
nsbuckner


Removing blank spaces when parsing XML


 / Published in: Objective C
 

  1. NSString *stringSpaces = [[[NSString alloc] initWithFormat:@"%@",stringParsed]autorelease];
  2. [stringSpaces stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

Report this snippet  

You need to login to post a comment.