-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYXMLReader.h
52 lines (30 loc) · 984 Bytes
/
YXMLReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// YXMLReader.h
//
// Created by Gérald HUARD on 07/02/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#define kYXMLReaderAttributesKey @"@attr"
#define kYXMLReaderTextNodeKey @"@text"
@protocol YXMLReaderDelegate <NSObject>
- (void) yXMLReaderDidFinishParsing:(NSDictionary*)dict;
@end
@interface YXMLReader : NSObject <NSXMLParserDelegate>{
NSURL *_url;
NSXMLParser *_parser;
NSDictionary *_dict;
BOOL _removeNameSpace;
id<YXMLReaderDelegate> _delegate;
NSMutableArray *_stack;
NSMutableString *_textInProgress;
}
@property (nonatomic, assign) id<YXMLReaderDelegate> delegate;
@property (nonatomic, retain) NSURL *url;
-(id) initWithUrl:(NSURL*)url;
-(void) initVars;
-(void) parse;
-(void) parse:(BOOL)inParallel;
-(void) trimTextInProgress;
-(NSDictionary*)dict;
-(id)objectForXPath:(NSString*)xpath;
@end