Use este elemento para procurar um elemento que corresponda aos critérios especificados.
Use esta função quando procurar uma mensagem que pertença a um domínio ciente do espaço de nomes.
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)
Nenhuma. Se ocorrer um erro, o parâmetro returnCode indica o motivo do erro.
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) ;
}