TiXmlDocument *pdoc=new TiXmlDocument;
std::string szXMLFile="e:\\64.xml";
bool rs= pdoc->LoadFile(szXMLFile);
TiXmlElement *pXMLNode = pdoc->FirstChildElement("HOOK");
TiXmlElement* xOption = pXMLNode->FirstChildElement();
for ( ; xOption; xOption = xOption->NextSiblingElement() )
{
TiXmlElement* xOption2 = xOption->FirstChildElement();
for (;xOption2;xOption2=xOption2->NextSiblingElement())
{
std::string DLLName = xOption->Value();
std::string Func = xOption2->GetText();
std::string ParamType = xOption2->Attribute("Paramtype");
std::string ParamValue="";
if (ParamType!="0")
{
ParamValue = xOption2->Attribute("Value");
}
RunFunc(DLLName,Func,ParamType,ParamValue);
}
}
std::string szXMLFile="e:\\64.xml";
bool rs= pdoc->LoadFile(szXMLFile);
TiXmlElement *pXMLNode = pdoc->FirstChildElement("HOOK");
TiXmlElement* xOption = pXMLNode->FirstChildElement();
for ( ; xOption; xOption = xOption->NextSiblingElement() )
{
TiXmlElement* xOption2 = xOption->FirstChildElement();
for (;xOption2;xOption2=xOption2->NextSiblingElement())
{
std::string DLLName = xOption->Value();
std::string Func = xOption2->GetText();
std::string ParamType = xOption2->Attribute("Paramtype");
std::string ParamValue="";
if (ParamType!="0")
{
ParamValue = xOption2->Attribute("Value");
}
RunFunc(DLLName,Func,ParamType,ParamValue);
}
}