'@return items A list of Host instances'

def get_hosts(self, tree):

    if tree.find('niktoscan'):
        for host_node in tree.find('niktoscan').findall('scandetails'):
            (yield Host(host_node))
    else:
        for host_node in tree.findall('scandetails'):
            (yield Host(host_node))
