WebSphere Message Brokers
File: as07960_
Writer: Lorraine Waitt

Reference topic

This build: July 31, 2007 21:37:42

cniSetElementName

Sets the name of the specified syntax element.

Syntax

void cniSetElementName(
  int*            returnCode,
  CciElement*     targetElement,
  const CciChar*  name);

Parameters

returnCode
The return code from the function (output).
Possible return codes are:
  • CCI_SUCCESS
  • CCI_EXCEPTION
  • CCI_INV_ELEMENT_OBJECT
  • CCI_INV_DATA_POINTER
targetElement
The address of the target syntax element object (input).
name
The name 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);
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:37:42

as07960_ This topic's URL is: