setElement setelement

Set XML to a s7:elementID.


If an FXG node element has a s7:elementID defined, the <XML> value is replaced as a child element. The <XML> must be encoded.

Example section-f23a998b18994dd3b5d4e1965718db9f

Assume a s7:elementID="group2" attribute is defined for a Group node then the following is valid:


This example removes all children from the group2node and replaces it with new TextGraphic child node.