Callback run when a recoverable parsing error occurs

def error(self, msg):
        """Callback run when a recoverable parsing error occurs"""

        self._error = True
        self._progress.printMsg('XML parse error: %s' % msg, error=True)