Convert latex to xml