Use this element to search for an element that matches the specified criteria.
Use this function when you search a message that belongs to a namespace-aware domain.
void cniSearchFirstChildInNamespace(
int* returnCode,
CciElement* targetElement,
CciCompareMode mode,
const CciChar* nameSpace,
const CciChar* name,
CciElementType type)
void cniSearchLastChildInNamespace(
int* returnCode,
CciElement* targetElement,
CciCompareMode mode,
const CciChar* nameSpace,
const CciChar* name,
CciElementType type)
void cniSearchNextSiblingInNamespace(
int* returnCode,
CciElement* targetElement,
CciCompareMode mode,
const CciChar* nameSpace,
const CciChar* name,
CciElementType type)
void cniSearchPreviousSiblingInNamespace(
int* returnCode,
CciElement* targetElement,
CciCompareMode mode,
CciElementType type,
const CciChar* nameSpace,
const CciChar* name)
None. If an error occurs, the returnCode parameter indicates the reason for the error.
mode=CCI_COMPARE_MODE_SPACE ;
...
if (forward) {
firstChild = cniSearchFirstChildInNamespace(&rc, element, mode, space, 0,0);
}else{
firstChild = cniSearchLastChildInNamespace(&rc, element, mode, space, 0,0);
}
if (firstChild) {
depth++;
traceElement(firstChild,forward,space);
depth--;
}
currentElement = firstChild;
do{
if (forward) {
nextSibling = cniSearchNextSiblingInNamespace(&rc, currentElement,mode,space,0,0);
}else{
nextSibling = cniSearchPreviousSiblingInNamespace(&rc, currentElement,mode,space,0,0);
}
if (nextSibling) {
traceElement(nextSibling,forward,space);
currentElement=nextSibling;
}
}while (nextSibling) ;
}