before erasing xml row