Huge update to ITFoundation. I've gone through every file (except queue.h
[ITFoundation.git] / ITXMLParser.m
old mode 100755 (executable)
new mode 100644 (file)
index b1931a9..36d5dc2
@@ -1,53 +1,46 @@
 #import "ITXMLParser.h"
+#import "ITXMLNode.h"
 
 @implementation ITXMLParser
 
-- (id)initWithContentsOfURL:(NSURL *)aURL
-{
-    if ( (self = [super init]) ) {
-        _source = [[NSString alloc] initWithContentsOfURL:aURL];
-        _XMLPathSeparator = @"/";
-    }
+- (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 = @"/";
-    }
+- (id)initWithContentsOfString:(NSString *)aString {
+       if ( (self = [super init]) ) {
+               _source = [aString copy];
+               _XMLPathSeparator = @"/";
+       }
 }
 
-- (void)dealloc
-{
-    [_source release];
-    [_XMLPathSeparator release];
+- (void)dealloc {
+       [_source release];
+       [_XMLPathSeparator release];
 }
 
-- (NSString *)source
-{
-    return _source;
+- (NSString *)source {
+       return _source;
 }
 
-- (NSDictionary *)declaration
-{
-    return nil;
+- (NSDictionary *)declaration {
+       return nil;
 }
 
-- (ITXMLNode *)nodeWithXMLPath
-{
-    return nil;
+- (ITXMLNode *)nodeWithXMLPath {
+       return nil;
 }
 
-- (void)setXMLPathSeparator:(NSString *)pathSeparator
-{
-    [_XMLPathSeparator autorelease];
-    _XMLPathSeparator = [pathSeparator copy];
+- (void)setXMLPathSeparator:(NSString *)pathSeparator {
+       [_XMLPathSeparator autorelease];
+       _XMLPathSeparator = [pathSeparator copy];
 }
 
-- (NSString *)XMLPathSeparator
-{
-    return _XMLPathSeparator;
+- (NSString *)XMLPathSeparator {
+       return _XMLPathSeparator;
 }
 
 @end
\ No newline at end of file