This is very simple
xmlFileLocation = [[NSBundle mainBundle]pathForResource:@"Cars" ofType:@"xml"];
NSData *xmlData = [NSData dataWithContentsOfFile:xmlFileLocation];
GDataXMLDocument *xmlDocument = [[GDataXMLDocument alloc]initWithData:xmlData options:0 error:&error];
NSArray *getData = [[xmlDocument rootElement]elementsForName:@"car"];
NSInteger type = [[(GDataXMLNode *) [[urls objectAtIndex: i] attributeForName: @ "type"] stringValue] intValue];
No comments:
Post a Comment