学校的过失导致上述事件发生，导致小文身心遭受巨大的痛苦，同时也给其家人带来了较大的痛苦，对此学校应当承担法律责任。
It was negligence of the university that led to the incident, which caused physical and mental distress for Xiaowen and her family, hence the university should take legal responsibility.