Se utiliza al buscar un mensaje que pertenece a un dominio preparado para espacios de nombres.
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)
Ninguno. Si se produce un error, el parámetro returnCode indica la razón del mismo.
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) ; }