Parser line break if string contains –
- by pask
Hi all,
My NSXMLParser breaks on this string:
<title>AAA – BCDEFGQWERTYUIO</title>
I parsed it in this way, hope is the right way:
- (void) parser: (NSXMLParser *) parser foundCharacters: (NSString *) string{
[...]
if ([currentElement isEqualToString:@"title"]) {
if (![string isEqualToString:@""]) {
[title addObject:string];
NSLog(@"str: %@", string);
}
}
it returns me:
str: AAA
str: -
str: BCDEFGQWERTYUIO
But i want to return a single string:
str: AAA - BCDEFGQWERTYUIO
because it's the correct title.
Any idea?
Thanks.