'Compares report root tag with known root tags.
:param root_tag
:rtype'

def rType(self, tag, output):

    if ('nmaprun' == tag):
        return 'Nmap'
    elif ('w3af-run' == tag):
        return 'W3af'
    elif ('NessusClientData_v2' == tag):
        return 'Nessus'
    elif ('report' == tag):
        if (re.search('https://raw.githubusercontent.com/Arachni/arachni/', output) is not None):
            return 'Arachni'
        elif ((re.search('OpenVAS', output) is not None) or (re.search('<omp><version>', output) is not None)):
            return 'Openvas'
        else:
            return 'Zap'
    elif ('niktoscan' == tag):
        return 'Nikto'
    elif ('MetasploitV4' == tag):
        return 'Metasploit'
    elif ('MetasploitV5' == tag):
        return 'Metasploit'
    elif ('issues' == tag):
        return 'Burp'
    elif ('OWASPZAPReport' == tag):
        return 'Zap'
    elif ('ScanGroup' == tag):
        return 'Acunetix'
    elif ('session' == tag):
        return 'X1'
    elif ('landscapePolicy' == tag):
        return 'X1'
    elif ('entities' == tag):
        return 'Core    Impact'
    elif ('NeXposeSimpleXML' == tag):
        return 'Nexpose'
    elif ('NexposeReport' == tag):
        return 'NexposeFull'
    elif (('ASSET_DATA_REPORT' == tag) or ('SCAN' == tag)):
        return 'Qualysguard'
    elif ('scanJob' == tag):
        return 'Retina'
    elif ('netsparker' == tag):
        return 'Netsparker'
    elif ('maltego' == tag):
        return 'Maltego'
    else:
        return None
