@@ -299,10 +299,24 @@ return string; string = [[OFString alloc] initWithFormat: @"The format is invalid for class %s!", [class name]]; + return string; +} +@end + +@implementation OFMalformedXMLException +- (OFString*)string +{ + if (string != nil) + return string; + + string = [[OFString alloc] initWithFormat: + @"The parser in class %s encountered malformed or invalid XML!", + [class name]]; + return string; } @end @implementation OFInitializationFailedException