iam working on one application.In that application,i declared the NSXmlParser object in viewdidload method.But where this object can be release.So please tell me which is the correct place for release that object.See my code
NSString *xmlFilePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"xml"];
NSData *data=[NSData dataWithContentsOfFile:xmlFilePath];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:data];
[xmlParser setDelegate:self];
[xmlParser setShouldProcessNamespaces:NO];
[xmlParser setShouldReportNamespacePrefixes:NO];
[xmlParser setShouldResolveExternalEntities:NO];
[xmlParser parse];
you can relese the xmlParser in -(void)dealloc method.