NSXMLParser returns error 31
NSXMLParser returns error 31
- Subject: NSXMLParser returns error 31
- From: Jesus De Meyer <email@hidden>
- Date: Tue, 21 Jun 2005 23:02:59 +0200
Hi again,
I'm currently having one hell of a problem. I load xml files from some websites and some of them fail to parse. Most of the time I get code 31 (Unknown encoding). So I tried to sove this by forcing the encodings:
NSString *stringData = [[[NSString alloc] initWithData:feedData encoding:NSISOLatin1StringEncoding] autorelease];
xmlParser = [[NSXMLParser alloc] initWithData:[stringData dataUsingEncoding:NSISOLatin1StringEncoding]]; [xmlParser setDelegate:self];
feedData is an NSMutableData that contains the data from the xml file. However, this doesn't work. Does anyone have a better solution? Any help is highly appreciated :)
Thanks in advance |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden