567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
|
{
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];
}
|
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
|
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
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
|
{
return [self XMLString];
}
- (OFString*)stringBySerializing
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFMutableDictionary *dictionary = [OFMutableDictionary dictionary];
OFString *ret;
if (name != nil)
[dictionary setObject: name
forKey: @"name"];
if (ns != nil)
[dictionary setObject: ns
forKey: @"namespace"];
if (defaultNamespace != nil)
[dictionary setObject: defaultNamespace
forKey: @"defaultNamespace"];
if (attributes != nil)
[dictionary setObject: attributes
forKey: @"attributes"];
if (namespaces != nil)
[dictionary setObject: namespaces
forKey: @"namespaces"];
if (children != nil)
[dictionary setObject: children
forKey: @"children"];
if (characters != nil)
[dictionary setObject: characters
forKey: @"characters"];
if (CDATA != nil)
[dictionary setObject: CDATA
forKey: @"CDATA"];
if (comment != nil)
[dictionary setObject: comment
forKey: @"comment"];
dictionary->isa = [OFDictionary class];
ret = [[OFString alloc]
initWithFormat: @"(class=OFXMLElement,version=0)<%@>",
[dictionary stringBySerializing]];
@try {
[pool release];
} @finally {
[ret autorelease];
}
|