Command "CreateEle"

Summary

Creates a new element within a node (document or element). The command belongs to the group "Document".


Parameters

Parameter Name Description Type
CopyAttr Indicates whether to copy all attributes of the element defined in EleRef ('true' oder 'false') default = 'true'. valueexpression
CopySubEle Indicates whether to copy all subelements of the element defined in EleRef ('true' oder 'false') default = 'true'. valueexpression
EleName The name of the new element. valueexpression
EleRef The name of the reference to the element used to copy its content. elementReference
NewEleRef The name of the reference under which the new element will be accessible. saveElementReference
NodeRef The name of the reference to the node. nodeReference

Valid parameter combinations



Description

Creates a new element and adds it as a subelement to an existing element or document. In case of a document the subelement is added to the document root.

Examples


Example 1

The example below creates a new element "newElement" and adds it to "myElement". "newElementReference" references the newly created element.
<CreateEle EleName="newElement" NodeRef="$myElement" NewEleRef="$newElementReference"/>