else if(xmlStrcmp(p->name, (const xmlChar*)"voices") == 0)
{
for(xmlNodePtr q = p->children; q != NULL; q = q->next)
{
if(xmlStrcmp(q->name, (const xmlChar*)"voice") == 0)
{
if(!readXMLString(q, "text", strValue))
continue;
Voice voice;
voice.text = strValue;
if(readXMLInteger(q, "interval2", intValue))
voice.interval = intValue;
else
voice.interval = 60;
if(readXMLInteger(q, "margin", intValue))
voice.margin = intValue;
else
voice.margin = 0;
voice.type = SPEAK_SAY;
if(readXMLInteger(q, "type", intValue))
voice.type = (SpeakClasses)intValue;
else if(readXMLString(q, "yell", strValue) && booleanString(strValue))
voice.type = SPEAK_YELL;
if(readXMLString(q, "randomspectator", strValue) || readXMLString(q, "randomSpectator", strValue))
voice.randomSpectator = booleanString(strValue);
else
voice.randomSpectator = false;
voiceList.push_back(voice);
}
}
}