Adding category to NSString that provides the functionality previously
[ITFoundation.git] / ITXMLParser.h
1 /*
2  *      ITFoundation
3  *      ITXMLParser.h
4  *
5  *      Copyright (c) 2005 by iThink Software.
6  *      All Rights Reserved.
7  *
8  *      $Id$
9  *
10  */
11
12 #import <Foundation/Foundation.h>
13
14 @class ITXMLNode;
15
16 @interface ITXMLParser : NSObject {
17         NSString *_source;
18         NSString *_XMLPathSeparator;
19 }
20
21 - (id)initWithContentsOfURL:(NSURL *)aURL;
22 - (id)initWithContentsOfString:(NSString *)aString;
23
24 - (NSString *)source;
25 - (NSDictionary *)declaration;
26
27 - (ITXMLNode *)rootNode;
28 - (ITXMLNode *)nodeWithXMLPath:(NSString *)path;
29
30 - (void)setXMLPathSeparator:(NSString *)pathSeparator;
31 - (NSString *)XMLPathSeparator;
32
33 @end