problem in parsing XML in iphone SDK? -
I have used the following to parse the xml file, but i can get the t value ... anyone Can also help me ..? (Zero) parser: (NSXMLParser *) parser didStartElement: (NSString *) elementName namespaceURI: (NSString *) namespaceURI qualifiedName: (NSString *) qualifiedName attributes: (NSDictionary *) attributeDict {
If ([elementName isEqualToString: @ "query"]) {// Certify the array. AppDelegate.books = [[NSMutableArray alloc] init]; } Else if ([elementName isEqualToString: @ "city"]) {// certify the book. ABook = [[Book Alok] Init]; // Remove the attribute here. ABook.bookID = [Attribute object objectForKey: @ "name"]; // NSLog (@ "Reading ID ID:% i", aBook.bookID); } // NSLog (@ "Processing Element:% @", elementName); itemprop = "text"> You must have at least 3 of NSXMLParser delegates
}
< To get the XML needed to properly parse - Check here:.
to see actual instructions
Comments
Post a Comment