def is_xml(value: str) -> bool: result = False if value: if value.startswith(" bool: result = False if value: if value.startswith("{"): result = True return result