added sentence conversion to xml