'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 = AcunetixXmlParser(output)
    for site in parser.sites:
        if (site.ip is None):
            continue
        host = []
        if (site.host != site.ip):
            host = [site.host]
        h_id = self.createAndAddHost(site.ip, site.os)
        i_id = self.createAndAddInterface(h_id, site.ip, ipv4_address=site.ip, hostname_resolution=host)
        s_id = self.createAndAddServiceToInterface(h_id, i_id, 'http', 'tcp', ports=[site.port], version=site.banner, status='open')
        n_id = self.createAndAddNoteToService(h_id, s_id, 'website', '')
        self.createAndAddNoteToNote(h_id, s_id, n_id, site.host, '')
        for item in site.items:
            self.createAndAddVulnWebToService(h_id, s_id, item.name, item.desc, website=site.host, severity=item.severity, resolution=item.resolution, path=item.uri, params=item.parameter, request=item.request, response=item.response, ref=item.ref)
    del parser
