I am trying to create an Xercesc DOM Parser in my code and for some reason and try to instiate an XercescDOM object I get a NULL pointer returned. I am using xercesc version 2.8 Here the code.
using namespace xercesc;
int main(int argc, char*argv[])
{
try
{
XMLPlatformUtils::Initialize();
}
catch (const XMLException& e)
{
char* errMsg = XMLString::transcode(e.getMessage());
cout << "Problem initializing parser: " << errMsg;
XMLString::release(&errMsg);
}
XercesDOMParser* parser = new XercesDOMParser();
if (!parser)
cout << "Failed to create parser";
}