'This method builds the xml structure for the plugins and their
configuration'

def _build_plugin_scaninfo(self, group_name, plugin_list, options_dict):

    node = self._xml.createElement(xml_str(group_name))
    for plugin_name in plugin_list:
        plugin_node = self._xml.createElement('plugin')
        plugin_node.setAttribute('name', xml_str(plugin_name))
        if (plugin_name in options_dict):
            for plugin_option in options_dict[plugin_name]:
                config_node = self._xml.createElement('config')
                config_node.setAttribute('parameter', xml_str(plugin_option.get_name()))
                config_node.setAttribute('value', xml_str(plugin_option.get_value()))
                plugin_node.appendChild(config_node)
        node.appendChild(plugin_node)
    self._scan_info.appendChild(node)
