before parse xml