cocoa异步请求 and libxml2.dylib(18)
发布时间:2021-06-07
发布时间:2021-06-07
- (void)endElementLocalName:(const xmlChar*)localname prefix:(const xmlChar*)prefix URI:(const xmlChar*)URI;
- (void)charactersFound:(const xmlChar*)ch
len:(int)len;
-(NSDictionary*)getResult;
@end
#import "BaseXmlParser.h"
@implementation BaseXmlParser
// Property
-(id)init{
if(self=[super init]){
//构建gb2312的encoding
enc
=CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000);
_root=[[NSMutableDictionary alloc]init];
上一篇:春颂阅读及答案