Added xml validation