I did not get any answers, but after trying different things, I was able to solve this problem. I am answering my question now, so if someone is faced with the same problem, they can solve this problem without spending much time like me.
In the didStartElement method for NSXMLParser, I wrote the following:
if ([elementName isEqual:@"media:content"]) { NSString *imageURLString = [attributeDict objectForKey:@"url"]; NSLog(@"imgURL %@",imageURLString);
Aj112 source share