What’s wrong in this IF statement?
if ([currentElement isEqualToString:@"aaa" || currentElement isEqualToString:@"bbb"])
XCode says:
No visible @interface for 'NSString' declares the selector 'isEqualToString:isEqualToString:'
I’m into an NSXML Parser procedure if it can help, but I think it’s not that the problem.
You must compare result of two method calls:
The code you have actually compiles as
that is compiler tries to call non-existing
isEqualToString:isEqualToString:method of NSString