Added xml encoder