How to extract the value from NSMutableArray?
<pre><code>-(void) readRestaurantFromXml {  
    SGAAppDelegate *app = (SGAAppDelegate *)[[UIApplication sharedApplication] delegate];
    NSString *myRequestString = [NSString stringWithFormat:@"%@getXml.aspx",app.SERVER_URL];    
    NSURL *url = [NSURL URLWithString: myRequestString];
    CXMLDocument *rssParser = [[[CXMLDocument alloc] initWithContentsOfURL:url options:0 error:nil] autorelease];
    resultNodes = [rssParser nodesForXPath:@"//item" error:nil];    
    listOfItems = [[NSMutableArray alloc] init];
    for (CXMLElement *resultElement in resultNodes) {
        NSString *theatre_id = [[resultElement childAtIndex:0] stringValue];
        NSString *theatre_name = [[resultElement childAtIndex:1] stringValue];
        NSString *restaurant_id  = [[resultElement childAtIndex:2] stringValue];
        NSString *restaurant_name  = [[resultElement childAtIndex:3] stringValue];
        NSString *restaurant_desc = [[resultElement childAtIndex:4] stringValue];
        NSString *deal_avail = [[resultElement childAtIndex:5] stringValue];
        NSString *deal_details = [[resultElement childAtIndex:6] stringValue];      
        Restaurant *workVal = [[Restaurant alloc] initWithRestTitle:restaurant_name restDesc:restaurant_desc theatreId:theatre_id theatreName:theatre_name restId:restaurant_id restDeals:deal_avail restDealDesc:deal_details];
        [listOfItems addObject:workVal];            
        [workVal release];      
    }

}
-(void)myTask{
   NSLog(@"%d",[listOfItems count]);
}
</code></pre>

<p>The NSMutableArray listofItems has 3 values.So how can i extract the array value in another method?</p>

<p>Help me</p>
