harshabi wrote:
How to create a parser object statically??
example:
xercesc::XercesDOMParser Lparser_;
if I do create an object as shown above It gives rise to error while
xercesc::XMLPlatformUtils::Terminate();
why??
Please read the documentation. Many questions are answered there:
http://xerces.apache.org/xerces-c/program.html
XMLPlatformUtils::Terminate() destroys some objects that your parser object
refers to, so in its destructor, it crashes. You cannot use or destroy any
Xerces-C objects after you've called XMLPlatformUtils::Terminate. Also,
you cannot create any Xerces-C objects before you've called
XMLPlatformUtils::Initialize().
Dave