XML DOM renameNode() Method
Definition and Usage
renameNode()
Method to rename an existing element or attribute node.
If possible, this will change the name of the given node, otherwise a new node with the specified name will be created and this new node will replace the existing node.
This method returns the renamed node.
Syntax
renameNode(node,uri,name)
Parameter | Description |
---|---|
node | The element or attribute node to be renamed. |
uri | String, specifies the new namespace name. |
name | String, specifies the new name. |