-if (cp->currParser)
- {
- cp->currParser->SetAnswerList(&cp->answerList);
- cp->currParser->SetCurrAdmin(cp->currAdmin);
- cp->currParser->ParseStart(data, el, attr);
- }
-else
- {
- for (unsigned int i = 0; i < cp->dataParser.size(); i++)
- {
- cp->dataParser[i]->SetAnswerList(&cp->answerList);
- //cp->currAdmin->SetAdminIP(cp->GetAdminIP());
- 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)