The input string is
<path>a & b</path>
and my Objective C parser code is
- (void) parser:(NSXMLParser *)parser
foundCharacters:(NSString *)string {
...
if(parserState==EXPECT_PATH) {
NSLog(@"got %@", string);
}
...
}
This prints got a
instead of got a & b