Updating ITFoundation project and target settings to the minimum required.
[ITFoundation.git] / ITXMLParser.m
1 #import "ITXMLParser.h"
2 #import "ITXMLNode.h"
3
4 @implementation ITXMLParser
5
6 - (id)initWithContentsOfURL:(NSURL *)aURL {
7         if ( (self = [super init]) ) {
8                 _source = [[NSString alloc] initWithContentsOfURL:aURL];
9                 _XMLPathSeparator = @"/";
10         }
11 }
12
13 - (id)initWithContentsOfString:(NSString *)aString {
14         if ( (self = [super init]) ) {
15                 _source = [aString copy];
16                 _XMLPathSeparator = @"/";
17         }
18 }
19
20 - (void)dealloc {
21         [_source release];
22         [_XMLPathSeparator release];
23 }
24
25 - (NSString *)source {
26         return _source;
27 }
28
29 - (NSDictionary *)declaration {
30         return nil;
31 }
32
33 - (ITXMLNode *)nodeWithXMLPath {
34         return nil;
35 }
36
37 - (void)setXMLPathSeparator:(NSString *)pathSeparator {
38         [_XMLPathSeparator autorelease];
39         _XMLPathSeparator = [pathSeparator copy];
40 }
41
42 - (NSString *)XMLPathSeparator {
43         return _XMLPathSeparator;
44 }
45
46 @end