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).
Possible return codes are:
  • CCI_SUCCESS
  • CCI_EXCEPTION
  • CCI_INV_MESSAGE_OBJECT
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 reference
C node utility functions