replace str by toxml