Verwenden Sie dieses Element für die Suche nach einem Element, das die angegebenen Kriterien erfüllt.
Verwenden Sie diese Funktion, wenn Sie eine Nachricht suchen, die zu einer Domäne gehört, die Namespaces unterstützt.
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)
Keine. Wenn ein Fehler auftritt, gibt der Parameter returnCode die Fehlerursache an.
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) ;
}