Added XML upload functionality