[Solved] How to parse this xml and retrieve the data in iPhone [duplicate]


hello before posting do some r and D many posts are available just check this link it may helps you

in your method

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
{

    if([elementName isEqualToString:@"Result"])
    {
        //Initialize the array.
        arrXMLData = [[NSMutableArray alloc] init];
    }
    else if([elementName isEqualToString:@"Movieoftheweek"])
    {
        currentElementValue = [[NSMutableString alloc] init];
    } 
    else if([elementName isEqualToString:@"Movie_List_in_theater"])
    {
        currentElementValue = [[NSMutableString alloc] init];
    }}
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
{
    if(!currentElementValue)
        currentElementValue = [[NSMutableString alloc] initWithString:string];
    else
        [currentElementValue appendString:string];
    NSLog(@"Processing Value: %@", currentElementValue);
}
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
{
    if([elementName isEqualToString:@"Result"])
        return;
    else if([elementName isEqualToString:@"Movieoftheweek"])
    {
        [arrXMLData addObject:currentElementValue];
    }
    else if([elementName isEqualToString:@"Movie_List_in_theater"])
    {
        [arrXMLData addObject:currentElementValue];
    }
    [currentElementValue release];
   }

solved How to parse this xml and retrieve the data in iPhone [duplicate]