'This method will discard the output the shell sends, it will read it from
the xml where it expects it to be present.
NOTE: if \'debug\' is true then it is being run from a test case and the
output being sent is valid.'

def parseOutputString(self, output, debug=False):

    parser = DnsreconXmlParser(output)
    for host in self.validHosts(parser.hosts):
        print host.type, host.name, host.zonetransfer
        hostname = host.target
        if (host.type == 'MX'):
            hostname = host.exchange
        elif (host.type == 'A'):
            hostname = host.name
        h_id = self.createAndAddHost(host.address)
        if self._isIPV4(str(host.address)):
            i_id = self.createAndAddInterface(h_id, name=host.address, ipv4_address=host.address, hostname_resolution=hostname)
        else:
            i_id = self.createAndAddInterface(h_id, name=host.address, ipv6_address=host.address, hostname_resolution=hostname)
        if (host.type == 'info'):
            s_id = self.createAndAddServiceToInterface(h_id, i_id, 'domain', protocol='tcp', ports=['53'], status='open')
            if (host.zonetransfer == 'success'):
                v_id = self.createAndAddVulnToService(h_id, s_id, name='Zone    transfer', desc='A    Dns    server    allows    unrestricted    zone    transfers', ref=['CVE-1999-0532'])
    del parser
