Use one or more of the functions in this group to search previous siblings of the specified element for an element that matches the specified criteria.
If you use this command to search for an element within a message that belongs to a namespace-aware domain, the search is performed only on those elements whose namespace is an empty string. If you want to perform a search for elements in all namespaces, use one of the cniSearchElementNamespace functions.
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);