Regarding xml parsing in iphone
<p>I am developing an application in which I am doing XML parsing. I found an error in the <code>[xmlparse parse]</code> method.</p>

<p>Error:</p>

<pre><code>[NSCFString bytes]: unrecognized selector sent to instance 0x3df6310

2010-04-30 00:09:46.302 SPCiphone2[4234:1003] void SendDelegateMessage
    (NSInvocation*): delegate (&lt;CFNotificationCenter 0x3d09670 [0x87dca0]&gt;)
    failed to return after waiting 10 seconds. main run loop mode:
    kCFRunLoopDefaultMode
</code></pre>

<p>Code snippet:</p>

<pre><code>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];
    }
}
</code></pre>
