So I have an xml document and I need to take all instances of <tag> and change them to <tag:tag> what is the best way to do this? I tried using xpath and then from the nodelist calling .setNodeName but there is not setter for that. How should I go about this? Should I just read it as a string and use regex?