I'm working with NSXMLParser and parsing a number of .xml file in the same class by calling the below method.

```
[[NSURLCache sharedURLCache] setMemoryCapacity:0];
[[NSURLCache sharedURLCache] setDiskCapacity:0];

NSString *xmlPath = [[NSBundle mainBundle] pathForResource:@"Accessory" ofType:@"xml"];
NSData *xmlData = [NSData dataWithContentsOfFile:xmlPath];

xmlParser = [[NSXMLParser alloc] initWithData:xmlData];
xmlParser.delegate=self;
[xmlParser parse];

```

also i have deallocated the parser delegate in dealloc method and also released its memory by calling :-

```
[xmlParser setDelegate:nil];
[xmlParser release];

- (void)dealloc
{
    [xmlParser dealloc];
    [super dealloc];
}

```

The application is still crashing after parsing two or three xml files in a row.
What i'm missing here. Any suggestions would be appreciated. Thanks in advance.