changed xmlTemplater@replaceTagByValue to simplify it a bit