このグループの 1 つ以上の関数を使用して、指定した条件に一致するエレメントに対して、指定したエレメントの直前の兄弟を検索します。
このコマンドを使用して、ネーム・スペースが認識するドメインに属するメッセージ内のエレメントを検索する場合、 ネーム・スペースが空ストリングになっているエレメントに対してのみ検索が実行されます。 すべてのネーム・スペースでエレメントを検索する場合は、 cniSearchElementNamespace 関数の 1 つを使用します。
CciElement* cniSearchFirstChild(
int* returnCode,
CciElement* targetElement,
CciCompareMode* mode,
CciElementType type,
CciChar name);
CciElement* cniSearchLastChild(
int* returnCode,
CciElement* targetElement,
CciCompareMode* mode,
CciElementType type,
CciChar name);
CciElement* cniSearchNextSibling(
int* returnCode,
CciElement* targetElement,
CciCompareMode* mode,
CciElementType type,
CciChar name);
CciElement* cniSearchPreviousSibling(
int* returnCode,
CciElement* targetElement,
CciCompareMode* mode,
CciElementType type,
CciChar name);
int rc;
CciElement* firstChild = cniSearchFirstChild(
&rc,
inRootElement,
CCI_COMPARE_MODE_NAME,
elementName,
0);