564
565
566
567
568
569
570
571
572
573
574
575
576
577
|
return [self _XMLStringWithParent: nil];
}
- (OFString*)description
{
return [self XMLString];
}
- (void)addAttribute: (OFXMLAttribute*)attribute
{
if (name == nil)
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
|
return [self _XMLStringWithParent: nil];
}
- (OFString*)description
{
return [self XMLString];
}
- (OFString*)stringBySerializing
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFString *ret = [[OFString alloc]
initWithFormat: @"(class=OFXMLElement)<%@>",
[[self XMLString] stringBySerializing]];
@try {
[pool release];
} @finally {
[ret autorelease];
}
return ret;
}
- (void)addAttribute: (OFXMLAttribute*)attribute
{
if (name == nil)
@throw [OFInvalidArgumentException newWithClass: isa
selector: _cmd];
|