Why it did not parse correctly?
I am currently using NSXML parser to parse my data. I can pass all data
successfully accept an element who's values are "A, B, C depressor stick &
D $10+".
I can only grab "D $10+".
I suspect it is because of this that is located under parser foundCharacters:
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
{
//NSLog(@"foundCharacters: %@", string);
currentNodeContent = (NSMutableString *)[string
stringByTrimmingCharactersInSet:[NSCharacterSet
whitespaceAndNewlineCharacterSet]];
}
However, I have no idea on what to replace it that method with as I afraid
that it might affect all the other elements that I could parse properly
previously.
No comments:
Post a Comment