NSXMLParser parser:parseErrorOccurred: not called on iOS 7
问题 I have a very strange issue on iOS7. I use standard NSXMLParser. On iOS6 everything works just fine - when XML is valid as well as when NSData is zero bytes or contains invalid bytes. self.dataParser = [[[NSXMLParser alloc] initWithData:data] autorelease]; [self.dataParser setDelegate: self]; [self.dataParser parse]; On iOS7 parser works as expected only when it has a valid XML data. If data is zero bytes, none of the delegate methods are called. Please help me find a direction to look to.