zoukankan      html  css  js  c++  java
  • TinyXML枚举节点

    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);
                
            }
        }
  • 相关阅读:
    20151224--
    20151223--联系人项目
    20151222--Ajax三级无刷新
    20151221--三级有刷新联动
    20151220--导航前四问已解答
    递归
    Request和Response详解
    无刷新三级联动查询
    20151219--导航自己制作的一部分
    151030
  • 原文地址:https://www.cnblogs.com/ahuo/p/2394293.html
Copyright © 2011-2022 走看看