Added XML handling for student training