RenameNode(<Node>, <NamespaceURI>, <QualifiedName>)


<Node> (required)

Type: DOMAttribute; DOMElement.
Renamed DOM node.

<NamespaceURI> (required)

Type: String.
Namespace URI of renamed element/attribute.

<QualifiedName> (required)

Type: String.
New qualified name of renamed node.

Returned value:

Type: DOMDocument.


Renames Element and Attribute nodes.
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.


Server, thick client, external connection, Mobile application (server).


Exception call reasons:
  • 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.


1C:Enterprise Developer's Community