これは、ネーム・スペースが認識するドメインに属するメッセージを検索する際に使用されます。
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)
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) ; }