cniSetElementName

指定した構文エレメントの名前を設定します。

構文

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

パラメーター

returnCode
関数からの戻りコード (出力)。
targetElement
ターゲット構文エレメント・オブジェクトのアドレス (入力)。
name
エレメントの名前 (入力)。

戻り値

なし。 エラーが発生した場合、returnCode パラメーターがエラーの理由を示します。

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

関連概念
ユーザー定義のメッセージ処理ノード
ユーザー定義の出力ノード

関連タスク
C でのメッセージ処理ノードの作成

関連資料
C 言語ノード・ユーティリティー関数
cniElementName
cniSetElementNamespace
cniSetElementType
cniSetElementValue グループ
cniSetElementValueValue