1 #import "ITXMLParser.m"
4 @implementation ITXMLParser
6 - (id)initWithContentsOfURL:(NSURL *)aURL
8 if ( (self = [super init]) ) {
9 _source = [[NSString alloc] initWithContentsOfURL:aURL];
10 _XMLPathSeparator = @"/";
14 - (id)initWithContentsOfString:(NSString *)aString
16 if ( (self = [super init]) ) {
17 _source = [aString copy];
18 _XMLPathSeparator = @"/"
25 [_XMLPathSeparator release];
33 - (NSDictionary *)declaration
38 - (ITXMLNode *)nodeWithXMLPath
43 - (void)setXMLPathSeparator:(NSString *)pathSeparator
45 [_XMLPathSeparator autorelease];
46 _XMLPathSeparator = [pathSeparator copy];
49 - (NSString *)XMLPathSeparator
51 return _XMLPathSeparator;