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);
                
            }
        }
  • 相关阅读:
    多线程实践
    sql你server,mysql,oracle的分页语句
    BS与CS的联系与区别
    EJB与JAVA BEAN的区别
    Struts2.0 xml文件的配置(package,namespace,action)
    Q 51~60
    Q 41~50
    列表推导式
    Q 31~40
    Q 21~30
  • 原文地址:https://www.cnblogs.com/ahuo/p/2394293.html
Copyright © 2011-2022 走看看