DOMDocument.RenameNode
Syntax:
Parameters:
<Node> (required)
Renamed DOM node.
<NamespaceURI> (required)
Namespace URI of renamed element/attribute.
<QualifiedName> (required)
New qualified name of renamed node.
Returned value:
Description:
Renaming of existing node is attempted; if it is impossible, a new node is created with a new name, prefix and namespace URI, replacing the original node.
Availability:
Note:
- Attempt to rename nodes other than Element or Attribute, or if the implementation does not support node renaming;
- Qualified name contains characters invalid for XML standard of this document;
- Attempt to rename a node created by another DOM document;
- Qualified name contains prefix with a value invalid for this namespace URI value.