@@ -43,20 +43,22 @@ pool = [[OFAutoreleasePool alloc] init]; element = [(id)self XMLElementBySerializing]; root = [OFXMLElement elementWithName: @"serialization" namespace: OF_SERIALIZATION_NS]; + [root addAttributeWithName: @"version" + stringValue: @"0"]; [root addChild: element]; ret = [@"\n" stringByAppendingString: [root XMLStringWithIndentation: 2]]; - [ret retain]; + [ret retain]; @try { [pool release]; - } @catch (id e) { - [ret release]; + } @finally { + [ret autorelease]; } - return [ret autorelease]; + return ret; } @end