634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
|
selector: _cmd];
OFString *old = defaultNamespace;
defaultNamespace = [ns_ copy];
[old release];
}
- (void)bindDefaultNamespace: (OFString*)ns_
{
[self setDefaultNamespace: ns_];
[self addAttributeWithName: @"xmlns"
stringValue: ns_];
}
- (void)addChild: (OFXMLElement*)child
{
if (name == nil)
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
if (children == nil)
|
<
<
<
<
<
<
<
|
634
635
636
637
638
639
640
641
642
643
644
645
646
647
|
selector: _cmd];
OFString *old = defaultNamespace;
defaultNamespace = [ns_ copy];
[old release];
}
- (void)addChild: (OFXMLElement*)child
{
if (name == nil)
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
if (children == nil)
|