'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 = ZapXmlParser(output)
    for site in parser.sites:
        host = []
        if (site.host != site.ip):
            host = [site.host]
        h_id = self.createAndAddHost(site.ip)
        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], status='open')
        n_id = self.createAndAddNoteToService(h_id, s_id, 'website', '')
        n2_id = self.createAndAddNoteToNote(h_id, s_id, n_id, site.host, '')
        for item in site.items:
            v_id = self.createAndAddVulnWebToService(h_id, s_id, item.name, item.desc, website=site.host, severity=item.severity, path=item.items[0]['uri'], params=item.items[0]['params'], request=item.requests, ref=item.ref, resolution=item.resolution)
    del parser
