1 #import "ITXMLParser.h"
4 @implementation ITXMLParser
6 - (id)initWithContentsOfURL:(NSURL *)aURL {
7 if ( (self = [super init]) ) {
8 _source = [[NSString alloc] initWithContentsOfURL:aURL];
9 _XMLPathSeparator = @"/";
13 - (id)initWithContentsOfString:(NSString *)aString {
14 if ( (self = [super init]) ) {
15 _source = [aString copy];
16 _XMLPathSeparator = @"/";
22 [_XMLPathSeparator release];
25 - (NSString *)source {
29 - (NSDictionary *)declaration {
33 - (ITXMLNode *)nodeWithXMLPath {
37 - (void)setXMLPathSeparator:(NSString *)pathSeparator {
38 [_XMLPathSeparator autorelease];
39 _XMLPathSeparator = [pathSeparator copy];
42 - (NSString *)XMLPathSeparator {
43 return _XMLPathSeparator;