'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 = NiktoXmlParser(output)
    for host in parser.hosts:
        h_id = self.createAndAddHost(host.targetip)
        i_id = self.createAndAddInterface(h_id, host.targetip, ipv4_address=host.targetip, hostname_resolution=host.targethostname)
        s_id = self.createAndAddServiceToInterface(h_id, i_id, 'http', 'tcp', ports=[host.port], status='open')
        n_id = self.createAndAddNoteToService(h_id, s_id, 'website', '')
        n2_id = self.createAndAddNoteToNote(h_id, s_id, n_id, host.targethostname, '')
        for item in host.items:
            v_id = self.createAndAddVulnWebToService(h_id, s_id, name=item.desc, ref=item.osvdbid, method=item.method, params=',    '.join(item.params), **plugin_utils.get_vulnweb_url_fields(item.namelink))
    del parser
