i have a xml like below where i just need to rename the node name to another.
<a x=1>
<b>c</b>
</a>
and i want to change it to
<p:a x=1>
<b>c</b>
</p:a>
i need to do it using xmlSlurper so how do i do it? how can i do the node rename. Does it need to rewrite the whole xml into another document etc? or can i do it within the document?
def xmlDoc = new XmlSlurper(false,false).parse('my.xml')