X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/d7bcfef7e59d8076d8eaffdaea4debd202e74e7b..ca611b500e4c5b95df5ef6d5c53d8c93b1e8e287:/ITXMLParser.m diff --git a/ITXMLParser.m b/ITXMLParser.m new file mode 100755 index 0000000..f96c384 --- /dev/null +++ b/ITXMLParser.m @@ -0,0 +1,54 @@ +#import "ITXMLParser.m" +#import "ITXMLNode.m" + +@implementation ITXMLParser + +- (id)initWithContentsOfURL:(NSURL *)aURL +{ + if ( (self = [super init]) ) { + _source = [[NSString alloc] initWithContentsOfURL:aURL]; + _XMLPathSeparator = @"/"; + } +} + +- (id)initWithContentsOfString:(NSString *)aString +{ + if ( (self = [super init]) ) { + _source = [aString copy]; + _XMLPathSeparator = @"/" + } +} + +- (void)dealloc +{ + [_source release]; + [_XMLPathSeparator release]; +} + +- (NSString *)source +{ + return _source; +} + +- (NSDictionary *)declaration +{ + return nil; +} + +- (ITXMLNode *)nodeWithXMLPath +{ + return nil; +} + +- (void)setXMLPathSeparator:(NSString *)pathSeparator +{ + [_XMLPathSeparator autorelease]; + _XMLPathSeparator = [pathSeparator copy]; +} + +- (NSString *)XMLPathSeparator +{ + return _XMLPathSeparator; +} + +@end \ No newline at end of file