Thursday, September 08, 2011

Gdata XMl Parsing simply

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:

Create a list in SwiftUI with sticky section headers

 Sample Code import SwiftUI struct ContentView : View {     @State var isCustomViewControllerDisplayed = false     @State private va...