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