'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):

    if (self.output_path is None):
        mypath = re.search('Results    saved    in    file    (\\S+)', output)
        if (mypath is not None):
            self.output_path = ((self._current_path + '/') + mypath.group(1))
        else:
            return False
    if debug:
        parser = GoohostParser(output, self.scantype)
    else:
        if (not os.path.exists(self.output_path)):
            return False
        parser = GoohostParser(self.output_path, self.scantype)
        if ((self.scantype == 'host') or (self.scantype == 'ip')):
            for item in parser.items:
                h_id = self.createAndAddHost(item['ip'])
                i_id = self.createAndAddInterface(h_id, item['ip'], ipv4_address=item['ip'], hostname_resolution=item['host'])
    del parser
