如果您使用此命令在属于名称空间域的消息内搜索元素,则仅在那些名称空间为空字符串的元素上执行搜索。如果您要在任何名称空间中搜索元素,则使用 cniSearchElementNamespace 命令中的一个。
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);