CciElement* cpiNextSibling( int* returnCode, const CciElement* targetElement);
次の兄弟がなくてゼロが戻される場合以外は、 要求した構文エレメント・オブジェクトのアドレスが戻されます。 エラーが発生した場合は、ゼロ (CCI_NULL_ADDR) が戻され、returnCode がエラーの理由を示します。
この例は、サンプル・ノード・ファイル BipSampPluginParser.c から取られています (494 行から 496 行)。
while ((!cpiElementCompleteNext(&rc, cpiParent(&rc, element))) && (!cpiNextSibling(&rc, element)) && (pc->iCurrentElement))