Added functionality to produce xml error file - <Bala>