cniSetElementType

Sets the type of the specified syntax element.

Syntax

void cniSetElementType(
  int*            returnCode,
  CciElement*     targetElement,
  CciElementType  type);

Parameters

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

Return values

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

Example

    CciElement* lastChild = cniCreateElementAsLastChild(&rc, outRootElement);
    cniSetElementName(&rc, lastChild, elementName);
    cniSetElementType(&rc, lastChild, CCI_ELEMENT_TYPE_NAME);

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
cniElementType
cniSetElementName
cniSetElementValueValue