org.w3c.dom.Document.renameNode
method

    public renameNode(node as Node, namespaceURI as String, qualifiedName as String) as Node throws DOMException

Description

Renames a node.

Parameters

- node Node to rename.
- namespaceURI New namespace URI.
- qualifiedName New qualified name.

Returns

Renamed node.

Throws

- DOMException if the node cannot be renamed.

Example

    renamed = document.renameNode(element, null, "renamed")