def xml_bool(value):
    if value is None:
        return None

    if value in mixbox.xml.FALSE:
        return False

    if value in mixbox.xml.TRUE:
        return True

    error = "Unable to determine the xml boolean value of '{0}'".format(value)
    raise ValueError(error)
Export of obj to a file.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/xml_bool--crossover with--dataset/ETHPy150Open igordejanovic/Arpeggio/arpeggio/export.py/Exporter.exportFile