code: def get_scan_results_xml(self, scan_id, pop_res):
          
          results = Element('results')
          for result in self.scan_collection.results_iterator(scan_id, pop_res):
              results.append(get_result_xml(result))
  
          logger.info('Returning %d results', len(results))
          return results
docs: Gets scan_id scan's results in XML format.
  
          @return: String of scan results in xml.