change node.data for node.nodeValue to have the same substitution for text nodes and node attributes