-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CData Not parsing #8
Comments
Hi, sorry for the delay. I assume that you have found a solution by now. Would you mind to share it or open a PR with it? I am trying to clean my issues and give that repository more attention than during the past. |
Actually i have implemented the above method nothing new. But sure i want to share following method which i used to clean-up the NSDictionary and generate the better output of the XML.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all thanks for creating this great parser that helped me a lot.
Now i know that CData means you have to ignore while parsing, but in case i need to parse it then how can i do it?
I found one method in NSXMLParserDelegate and i implemented it as below. The problem is how to place the string parsed exactly where it belongs.
-(void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock
{
NSString *someString = [[NSString alloc] initWithData:CDATABlock encoding:NSUTF8StringEncoding];
// Build the text value
[self.textInProgress appendString:someString];
NSLog(@"-------CData String %@",someString);
}
The text was updated successfully, but these errors were encountered: