how to replace a value of variable in XML