I have following scenario: I have a XML-Document, e.g. like this
Just call setName("reallyCoolTag") on the element(s) you want to rename. There is no need to copy the children around; the name attribute of an element is a mutable field.
setName("reallyCoolTag")