- if (buffer[i] == 0)
- {
- if (RxCallBack)
- if (st_ok != RxCallBack(dataRxCallBack, &answerList))
- return st_xml_parse_error;
- return st_ok;
- }
+ if (RxCallBack != NULL)
+ if (!RxCallBack(dataRxCallBack, chunk, final))
+ return st_xml_parse_error;
+ chunk.clear();