Use xml when connected to server