IOS XML与JSON解析

IOS XML解析

NSXMLParse 

NSURL *url = [[NSBundle mainBundle]URLForResource:@"my" withExtension:@"xml"];

NSXMLParse *parse = [[NSXMLParse alloc] initWithContentsOfURL:url];


- (void) paese: (NSXMLParse *) parse didStartElement:(NSString *) elementName nameSpaceURI:(NSString *) nameSaceURI qualifedName:(NSString *) qualifedName

attributes:(NSDictionary *) attributeDict;


你可能感兴趣的:(ios,ios,中JSON解析,中XML解析)