cniCopyElementTree

Copies a part of the element tree from the source element to the target element. Only the child elements of the source element are copied. All existing child elements of the target element are deleted, and are replaced by the child elements of the source element.

Syntax

void cniCopyElementTree(
  int*         returnCode,
  CciElement*  sourceElement,
  CciElement*  targetElement);

Parameters

returnCode
The return code from the function (output).
sourceElement
The address of the source syntax element object (input).
targetElement
The address of the target syntax element object (input).

Return values

None. If an error occurs, the returnCode parameter indicates the reason for the error.

Example

  cniCopyElementTree(&rc, inRootElement, outRootElement);

Related concepts
User-defined message processing nodes
User-defined output nodes

Related tasks
Creating a message processing node in C

Related reference
C language node utility functions