def strbool(x):
    """
    Return an string representation of the specified boolean for an XML
    document.

        >>> strbool(False)
        '0'
        >>> strbool(True)
        '1'
    """
    return '1' if x else '0'