def check_nmap_file(file_path):
    """
    Checks if file is oX xml output nmap file
    """
    with open(file_path,'r') as check:
        data = check.readlines()
    if r"<?xml" in data[0] and r"<!DOCTYPE nmaprun" in data[1]:
        return True
    else:
        return False