Another approach is to specify the namespace for the DOMDocument, which fixed my issues when dealing with this same issue.
For example: Void foo(XERCES_CPP_NAMESPACE::DOMDocument* pDocument); The specific namespace classification allows the compiler and linker to successfully resolve without conflicts. Regards, Nicholas -----Original Message----- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 4:45 AM To: c-users@xerces.apache.org Subject: Re: MSXML.H - Redefinition of DOMDocument Basetype VS 2008 msxml.h is included deep in ole2.h; the only way to fix this is to add a #undef DOMDocument before including the Xerces headers. Alberto <Cyberbob> wrote: > Hi! > > I'm getting crazy with this compilation error in VS 2008: > > C3271: DOMDocument redefinition ... file: msxml.h > > I already tried the WIN32_LEAN_AND_MEAN definition - doesn't work! > > I removed windows.h and i only include STL - classes.... > > what can i do to find out where msxml.h gets included??? > > thanks a lot!! > > greetings >