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.
This is part of the output of the parsed document:
<title>Cleansing, gel, Tongue depressor stick & gloves $10+</title>
The output of foundCharacters are as shown below
foundCharacters: Cleansing, gel, Tongue depressor stick
foundCharacters: &
foundCharacters: gloves $10+
And I have appended the string under didEndElement:
[currentIssue.title appendString:currentNodeContent];