Index: src/OFXMLParser.m ================================================================== --- src/OFXMLParser.m +++ src/OFXMLParser.m @@ -728,10 +728,13 @@ #endif [delegate parser: self didEndElement: name withPrefix: prefix namespace: ns]; + + if ([previous count] == 0) + finishedParsing = YES; [namespaces removeNObjects: 1]; } else if (prefix != nil) { OFString *str = [OFString stringWithFormat: @"%@:%@", prefix, name];