Hello,
Am I correct in thinking that in the XPathCAPI.cpp file the code snippet: XMLPlatformUtils::Initialize(); initializes XercesC++?
If that is the case then according to the documentation:
****************************************
Use the static initializers to initialize the Xalan-C++ and Xerces-C++ platforms. You must initialize Xerces-C++ once per process. You may initialize and terminate Xalan-C++ multiple times, but this is not recommended: it is inefficient and is not thread safe.
****************************************
if one uses the XPathCAPI.cpp and Xerces won't they have problem because of the initializing taking place twice?
I am using the Xerces API for creating XML Documents and now want to use Xalan to be able to use XPath to obtain info from the XML file.
I initialize Xerces using XMLPlatformUtils::Initialize(). But now if I want to use the XalanXPathAPIInitialize( ) then I am in theory initializing XMLPlatformUtils twice whereas it is only allowed to be initialize once.
Am I wrong in my thinking?
Regards,
Sami
