读取XML文件:TiXmlDocument XmlDoc(sJobXML);
                   if (!XmlDoc.LoadFile())
                   {
                       LOG("GetJobXMLInfo:加载XML文件%s失败", sJobXML);
                       return FALSE;
                     }

获取根结点:TiXmlElement* rootElement = XmlDoc.RootElement(); 

获取根结点的第一个标签值:TiXmlElement* pElement= rootElement->FirstChildElement(); 

获取标签值的第一个键值: TiXmlElement* pChildElement= pElement->FirstChildElement(); 

获取该键值的所有属性值:while ( pChildElement) 
                                 {
                                    TiXmlAttribute* pAttribute= pChildElement->FirstAttribute(); //键值的第一个属性值
                                    while ( pAttribute) 
                                    {
                                          // pAttribute->Name() ——属性名称;pAttribute->Value()——属性值
                                         pAttribute= pAttribute->Next(); //依次获取其他属性值
                                     }

获取键值的第一个子属性值   TiXmlElement* pSecElement = pChildElement->FirstChildElement();
                                    //pSecElement ->GetText()——子属性的属性值
    
 依次获取键值的n个子属性值   TiXmlElement* pChildElement= pChildElement->NextSiblingElement();
                                  }