Command "DeleteAttrs"

Summary

Deletes attributes of an element. The command belongs to the group "Document".


Parameters

Parameter Name Description Type
AttrNames The names of the attributes to be deleted (comma-seperated list). valueexpression
EleRef The name of the reference to the element. elementReference

Valid parameter combinations



Description

Deletes one or more attributes of an element.

Examples


Example 1

The example below deletes the attribute "fancyAttribute" of the element "MyElement". The element before deletion...
<MyElement firstname="Donald" lastname="Duck" fancyAttribute="foobar">
The following command is used to delete the attribute "fancyAttribute".
<DeleteAttrs EleRef="$MyElement" AttrNames="fancyAttribute"/>
The element after deletion...
<MyElement firstname="Donald" lastname="Duck">