21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#import "OFXMLElementBuilder.h"
#import "OFXMLElement.h"
#import "OFXMLParser.h"
#import "OFMutableArray.h"
#import "OFAutoreleasePool.h"
#import "OFMalformedXMLException.h"
@implementation OFXMLElementBuilder
+ elementBuilder
{
return [[[self alloc] init] autorelease];
}
|
>
>
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#import "OFXMLElementBuilder.h"
#import "OFXMLElement.h"
#import "OFXMLParser.h"
#import "OFMutableArray.h"
#import "OFAutoreleasePool.h"
#import "OFMalformedXMLException.h"
#import "macros.h"
@implementation OFXMLElementBuilder
+ elementBuilder
{
return [[[self alloc] init] autorelease];
}
|
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
[(id)delegate release];
[super dealloc];
}
- (id <OFXMLElementBuilderDelegate>)delegate
{
return [[(id)delegate retain] autorelease];
}
- (void)setDelegate: (id <OFXMLElementBuilderDelegate>)delegate_
{
[(id)delegate_ retain];
[(id)delegate release];
delegate = delegate_;
}
- (void)parser: (OFXMLParser*)parser
didStartElement: (OFString*)name
withPrefix: (OFString*)prefix
namespace: (OFString*)ns
attributes: (OFArray*)attributes
|
|
<
<
|
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
[(id)delegate release];
[super dealloc];
}
- (id <OFXMLElementBuilderDelegate>)delegate
{
OF_GETTER(delegate, YES)
}
- (void)setDelegate: (id <OFXMLElementBuilderDelegate>)delegate_
{
OF_SETTER(delegate, delegate_, YES, NO)
}
- (void)parser: (OFXMLParser*)parser
didStartElement: (OFString*)name
withPrefix: (OFString*)prefix
namespace: (OFString*)ns
attributes: (OFArray*)attributes
|