def mb_parser_xml(resp):
 try:
  return mbxml.parse_message(resp)
 except UnicodeError as exc:
  raise ResponseError(cause=exc)
 except Exception as exc:
  if isinstance(exc, ETREE_EXCEPTIONS):
   raise ResponseError(cause=exc)
  else:
   raise

def mb_parser_xml ( resp ) : try : return mbxml . parse_message ( resp ) except UnicodeError as exc : raise ResponseError ( cause = exc ) except Exception as exc : if isinstance ( exc , ETREE_EXCEPTIONS ) : raise ResponseError ( cause = exc ) else : raise
return a python dict representing the xml response .