-if (cp->currParser)
- {
- cp->currParser->SetAnswerList(&cp->answerList);
- cp->currParser->SetCurrAdmin(*cp->currAdmin);
- cp->currParser->ParseStart(data, el, attr);
- }
-else
- {
- for (size_t i = 0; i < cp->dataParser.size(); i++)
- {
- cp->dataParser[i]->SetAnswerList(&cp->answerList);
- cp->dataParser[i]->SetCurrAdmin(*cp->currAdmin);
- cp->dataParser[i]->Reset();
- if (cp->dataParser[i]->ParseStart(data, el, attr) == 0)
- {
- cp->currParser = cp->dataParser[i];
- break;
- }
- else
- {
- cp->dataParser[i]->Reset();
- }
- }
- }
-}
-//-----------------------------------------------------------------------------
-void ParseXMLEnd(void *data, const char *el)