How to pass URL Dynamically from xml using Attribute in Objective c

Alice

New Member
How to pass URL Dynamically from xml using Attribute in Objective c and then i want to store url in matches string.\[code\]NSString * home= @"http://sports.xyz.rss/rss.aspx"; MSXMLParser * homenew=[[MSXMLParser alloc]init]; [homenew parseWithURLString:home FileName:@"file" xmlType:@"MATCHES"]; NSMutableDictionary * mainDict = [MSDataDictionary newsDictionary]; for (int i=0; i<=[mainDict count]; i++) { NSString * theKey = [NSString stringWithFormat:@"%d",i]; NSMutableDictionary * itemDict = [mainDict objectForKey:theKey]; matches = [itemDict objectForKey:@"title"]; if ([matches isEqualToString:@"cric"]) { matches=[itemDict objectForKey:@"link"]; break; } } NSString * home=matches;\[/code\]
 
Back
Top