views:

26

answers:

0

I'm trying to parse an XML feed from youtube. The XML feed graphically looks like this:

alt text

To check if each of the 'tags' are being hit correctly, I used the following standard methods:

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
  namespaceURI:(NSString *)namespaceURI
 qualifiedName:(NSString *)qName
    NSLog(@"StartElement=>%@",elementName); 
}

- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName
  namespaceURI:(NSString *)namespaceURI
 qualifiedName:(NSString *)qName {     
    NSLog(@"EndElement=>%@",elementName);
}

However, when I did this, I noticed the first 'entry' tag was parsed, followed by '/entry' and then 'feed'

In other words, ONLY ONE 'ENTRY' was parsed. How can I get the code to parse the rest of the ENTRY objects? (it seems as if though the code parsed all the way to the deepest tag and doesn't know how to get out)