Xerces-C++解析xml实例指导

来源:互联网 发布:怎么开一家淘宝店 编辑:程序博客网 时间:2024/05/16 05:05

http://xerces.apache.org/xerces-c

 

http://xerces.apache.org/xerces-c/program-3.html

这个网上很全面

 

 

#include <xercesc/util/PlatformUtils.hpp>// Other include files, declarations, and non-Xerces-C++ initializations.using namespace xercesc;int main(int argc, char* argv[]){  try {    XMLPlatformUtils::Initialize();  }  catch (const XMLException& toCatch) {    // Do your failure processing here    return 1;  }  // Do your actual work with Xerces-C++ here.  XMLPlatformUtils::Terminate();  // Other terminations and cleanup.  return 0;}

原创粉丝点击