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; } |