XML 파싱을 수행하는 응용 프로그램을 개발 중입니다. [xmlparse parse]
메소드에서 오류를 발견했습니다.iphone에서 xml 구문 분석에 관해서
오류 :
[NSCFString bytes]: unrecognized selector sent to instance 0x3df6310
2010-04-30 00:09:46.302 SPCiphone2[4234:1003] void SendDelegateMessage
(NSInvocation*): delegate (<CFNotificationCenter 0x3d09670 [0x87dca0]>)
failed to return after waiting 10 seconds. main run loop mode:
kCFRunLoopDefaultMode
코드 :
responseOfWebResultData = [[NSMutableString alloc]
initWithData:responseData
encoding:NSUTF8StringEncoding];
NSLog(@"result: %@", responseOfWebResultData);
// starting the XML parsing
if (responseOfWebResultData) {
@try {
xmlParser = [[NSXMLParser alloc] initWithData:responseOfWebResultData];
[xmlParser setDelegate:self];
[xmlParser setShouldResolveExternalEntities:YES];
[xmlParser parse];
[responseOfWebResultData release];
}
@catch (NSException *e) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Please"
message:[e reason]
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
[alert release];
}
}
데이터를 볼 수 있습니까? – dwery