I read your link and it is not exactly my case. I don't use DOMDocument in my code. Perhaps it is using inside PISDK and also in another SDK which I'm using. Unfortunately, PI SDK is using DOMDocument from Xerces and the second SDK from Microsoft. It seems that both codes use DOMDocument without namespace. I guess ,that is the problem.
For now I solved this issue with reordering #include statements and including PI SDK dlls in .cpp file instead of in .h files.
Thanks for your interest !