Moving text to xml format