(response)
return OpenRosaResponse(message.text.strip(), message.get("nature"), None)
Parse an OpenRosaResponse from the response XML.
    :returns: OpenRosaResponse object or None
Parse an OpenRosaResponse from the response XML.
    :returns: OpenRosaResponse object or None
Parse an OpenRosaResponse from the response XML . : returns : OpenRosaResponse object or None
def parse_openrosa_response(response):
    """Parse an OpenRosaResponse from the response XML.
    :returns: OpenRosaResponse object or None"""
    try:
        root = etree.fromstring(response)
    except etree.XMLSyntaxError:
        return

    message = root.find(f'{{{RESPONSE_XMLNS}}}message')
    if message is None:
        return

    return OpenRosaResponse(message.text.strip(), message.get("nature"), None)
def parse_openrosa_response ( response ) : try : root = etree . fromstring ( response ) except etree . XMLSyntaxError : return message = root . find ( f'{{{RESPONSE_XMLNS}}}message' ) if message is None : return return OpenRosaResponse ( message . text . strip ( ) , message . get ( "nature" ) , None )