'This method will discard the output the shell sends, it will read it
from the xml where it expects it to be present.'

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

    parser = ArachniXmlParser(output)
    if (not parser.system):
        print 'Error    in    xml    report...    Exiting...'
        return
    self.hostname = self.getHostname(parser.system.url)
    self.address = self.getAddress(self.hostname)
    host_id = self.createAndAddHost(self.address)
    interface_id = self.createAndAddInterface(host_id, self.address, ipv4_address=self.address, hostname_resolution=self.hostname)
    service_id = self.createAndAddServiceToInterface(host_id, interface_id, self.protocol, 'tcp', ports=[self.port], status='Open', version='', description='')
    noteScan_id = self.createAndAddNoteToService(host_id, service_id, 'Scan    Information', parser.system.note)
    note_id = self.createAndAddNoteToService(host_id, service_id, 'Plugins    arachni', 'Plugins    used    by    arachni    and    results    of    this.')
    if (parser.plugins.waf != 'None'):
        note2_id = self.createAndAddNoteToNote(host_id, service_id, note_id, 'Waf    Plugin', parser.plugins.waf)
    if (parser.plugins.healthmap != 'None'):
        note3_id = self.createAndAddNoteToNote(host_id, service_id, note_id, 'Healthmap    Plugin', parser.plugins.healthmap)
    for issue in parser.issues:
        description = ((('Description:\n' + issue.description) + '\n\nSolution:\n') + issue.remedy_guidance)
        references = issue.references
        if (issue.cwe != 'None'):
            references.append(('CWE-' + issue.cwe))
        issue_id = self.createAndAddVulnWebToService(host_id, service_id, name=issue.name, desc=description, ref=references, severity=issue.severity, website=self.hostname, path=issue.url, method=issue.method, pname=issue.var, params=issue.parameters, request=issue.request, response=issue.response)
    return
