Command "Rename"

Summary

Renames a reference (Property, Element, Elementattribute). The command belongs to the group "Document".


Parameters

Parameter Name Description Type
NewName The new name of the attribute. valueexpression
Ref The name of the reference to the element to be changed. readReference

Valid parameter combinations



Description

Renames an element, attribute or property referenced by "Ref" to "NewName".

Examples


Example 1

The example below renames the element referenced by "myElement" to "renamedElement". Once more the "NewName" is a valueexpression, which is a combination of properties, elements and/or literals.
<Rename EleRef="$myElement" NewName="renamedElement">
The next example renames the attribute "size" of the element referenced by "myElement" to "length".
<Rename EleRef="$myElement.size" NewName="length">