Command "AddEle"

Summary

Adds an existing element to a node (document or element). The command belongs to the group "Document".


Parameters

Parameter Name Description Type
EleRef The name of the reference to the element. elementReference
NodeRef The name of the reference to the node. nodeReference

Valid parameter combinations



Description

Adds an element as a subelement to a node or document root.

Examples


Example 1

The example below adds the element "MyChild" to the root of the document "MyDoc". "RefToChild" references "MyChild" the child to be added. The document "MyDoc" before adding the element...
<DocRoot>
<Child1/>
<Child2/>
<Child3/>
</DocRoot>
The following command adds the element:
<AddEle EleRef="$RefToChild" NodeRef="$MyDoc"/>
After executing the command the document looks like this:
<DocRoot>
<Child1/>
<Child2/>
<Child3/>
<MyChild/>
</DocRoot>