mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-06 22:39:42 +08:00
25 lines
587 B
Objective-C
Executable File
25 lines
587 B
Objective-C
Executable File
//
|
|
// XMLReader.h
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface XMLReader : NSObject <NSXMLParserDelegate>
|
|
{
|
|
NSMutableArray *dictionaryStack;
|
|
NSMutableString *textInProgress;
|
|
NSError **errorPointer;
|
|
}
|
|
|
|
+ (NSDictionary *)dictionaryForPath:(NSString *)path error:(NSError **)errorPointer;
|
|
+ (NSDictionary *)dictionaryForXMLData:(NSData *)data error:(NSError **)errorPointer;
|
|
+ (NSDictionary *)dictionaryForXMLString:(NSString *)string error:(NSError **)errorPointer;
|
|
|
|
@end
|
|
|
|
@interface NSDictionary (XMLReaderNavigation)
|
|
|
|
- (id)retrieveForPath:(NSString *)navPath;
|
|
|
|
@end |