views:

36

answers:

2
A: 

'<' '&' and '>' are HTML Reserved characters as well as a few others, They need to be escaped for it to pass correctly or it will produce an error. Valid XML should have these characters already escaped so it should be fixed on the server end.

If you are using NSXMLParser and you try and run invalid input through it like what you have above it will produce an error and stop passing the contents of the XML.

If you don't have access to the source XML leave a comment and I'll see if I can find some ways people have fixed it.

Rudiger
I don't have access to the file but i think i've answered my own question. After I realized it caused issues with this site I did more research on CDATA.
Forgoten Dynasty
@Forgotten Dynasty: Yes, you catch the data in the CDATA call back method. And let the parser does its successive task. I think if you use ordinary libxml library, you will have more concepts on parsing xml file.
iSight
A: 
- (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock
{
    NSString *someString = [[NSString alloc] initWithData:CDATABlock encoding:NSUTF8StringEncoding];
}
Forgoten Dynasty