'Adds the -oX parameter to get xml output to the command string that the
user has set.'

def processCommandString(self, username, current_path, command_string):

    host = re.search("(http|https|ftp)\\://([a-zA-Z0-9\\.\\-]+(\\:[a-zA-Z0-9\\.&amp;%\\$\\-]+)*@)*((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|localhost|([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))[\\:]*([0-9]+)*([/]*($|[a-zA-Z0-9\\.\\,\\?'\\\\+&amp;%\\$#\\=~_\\-]+)).*?$", command_string)
    self.protocol = host.group(1)
    self.host = host.group(4)
    if (host.group(11) is not None):
        self.port = host.group(11)
    if (self.protocol == 'https'):
        self.port = 443
    print ('host    =    %s,    port    =    %s' % (self.host, self.port))
    arg_match = self.xml_arg_re.match(command_string)
    return ('%s    -o    %s    -f    xml    \n' % (command_string, self._output_file_path))
