def str2bool(str):
    if str.lower() in ['true','1']:
        return True
    return False


##
# Utility function to get the text of an XML element
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/sfa/trust/credential.py/str2bool/original