close case through xml file