void XaLibDom::ParseParamFromDom (xmlDocPtr doc, xmlNodePtr cur, VectorKey VectorKey, int counter) { xmlChar *key; char* keyChar; cur = cur->xmlChildrenNode; while (cur != NULL) { for(unsigned j=0; j<VectorKey.size(); ++j) { if (cur->type == XML_ELEMENT_NODE && (!xmlStrcmp(cur->name, (const xmlChar*)VectorKey.at(j).c_str()))) { string *nodeValue = new string(); string StringKey=VectorKey.at(j).c_str(); string StringValue=""; key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); keyChar = (char*)key; *nodeValue=keyChar; if (*nodeValue!="") { StringValue=*nodeValue; } else { StringValue=""; } ParamFromDom[counter][StringKey]=StringValue; cur=cur->next; cur=cur->next; } else { } } cur=cur->next; } };