Added XML doc creation with temp vals