1 #import "ITXMLParser.h"
3 @implementation ITXMLParser
5 - (id)initWithContentsOfURL:(NSURL *)aURL
7 if ( (self = [super init]) ) {
8 _source = [[NSString alloc] initWithContentsOfURL:aURL];
9 _XMLPathSeparator = @"/";
13 - (id)initWithContentsOfString:(NSString *)aString
15 if ( (self = [super init]) ) {
16 _source = [aString copy];
17 _XMLPathSeparator = @"/";
24 [_XMLPathSeparator release];
32 - (NSDictionary *)declaration
37 - (ITXMLNode *)nodeWithXMLPath
42 - (void)setXMLPathSeparator:(NSString *)pathSeparator
44 [_XMLPathSeparator autorelease];
45 _XMLPathSeparator = [pathSeparator copy];
48 - (NSString *)XMLPathSeparator
50 return _XMLPathSeparator;