样子的xml文件,都可以放在这个_root 中。
因此我们为 _root 变量提供了一个访问方法getResult,等xml解析结束,可以通过这个方法访问_root。
#import <Foundation/Foundation.h>
#import <libxml/tree.h>
@interface BaseXmlParser : NSObject {
NSStringEncoding enc;
NSMutableDictionary* _root;
}
// Property
- (void)startElementLocalName:(const xmlChar*)localname prefix:(const xmlChar*)prefix
URI:(const xmlChar*)URI
nb_namespaces:(int)nb_namespaces
namespaces:(const xmlChar**)namespaces
nb_attributes:(int)nb_attributes
nb_defaulted:(int)nb_defaultedslo
attributes:(const xmlChar**)attributes;
搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新人文社科cocoa异步请求 and libxml2.dylib(19)全文阅读和word下载服务。
相关推荐: