(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
{
currentNodeContent = (NSMutableString *) [string stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
}
I’m trying to figure out why i need the parser here. All the trimming is done on the string so why am I sending the parser too? I don’t see anything related to the parser inside the method. Is that just for reporting ? (there’s a good chance that i don’t understand what’s it the parser.)
It’s a delegate method. The
parserparameter is there because you may need it if you use the same delegate for multiple parsers.