convert to xml working