Is there a way to parse xml file that is encoded with windows-1254 with using NSXMLParser? When i try, didStartElement method not called.
views:
111answers:
2
A:
I removed the <?xml version="1.0" encoding="windows-1254" ?>
part from xml data and then i send it to xmlParser, so there is no problem anymore.
crazywood
2009-10-23 12:58:38
A:
Don't forget if parse() returns NO you can check parseError to see what happened:
if ([parser parse] == NO)
{
NSError *error = [parser parserError];
NSString *readableMessage = [error localizedDescription];
NSLog(@"Error occurred: %@\n", readableMessage);
}
Epsilon Prime
2009-10-26 18:47:47
Thank you for your advice, i implemented it, but i think there is a missing character at "[parser parseError]", it must be "[parser parserError]".
crazywood
2009-10-27 10:42:33
Right you are -- fixed.
Epsilon Prime
2009-10-27 14:31:33