VC++ 6 to VC++ 2008 migration error IXMLDOMNode' : ambiguous symbol

I am migrating my VC++ 6 project to Visual Studio 2008.

Vc++ 2008 giving the following error during compilation.
The header file has the following declaration

#import "msxml6.dll"      
using namespace MSXML2;

c:\Test\source\MyApp\../ptmMigration/ptmPolicy.h(321) : error C2872: 'tagDOMNodeType' : ambiguous symbol
        could be 'c:\program files\microsoft sdks\windows\v6.0a\include\msxml.h(350) : tagDOMNodeType'
        or       'c:\Test\source\MyApp\../ptmMigration\debug\msxml6.tlh(352) : MSXML2::tagDOMNodeType'
c:\Test\source\MyApp\../ptmMigration\../ptmMigration/ptmPolicy.h(321) : error C2872: 'IXMLDOMNode' : ambiguous symbol
        could be 'c:\program files\microsoft sdks\windows\v6.0a\include\msxml.h(531) : IXMLDOMNode'

Thanks in advance.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can you check that:

#import  raw_interfaces_only
using namespace MSXML2;

The following link may help:

bobbeyAuthor Commented:
#import <msxml6.dll> raw_interfaces_only
using namespace MSXML2;
But that didnt work, same set of errors again.
So remove namespace MSXML2 and use MSXML2::IXMLDOMNode explicitly

You will find this code:

#import "c:\winnt\system32\msxml4.dll"
using namespace MSXML2;

int main(int argc, char* argv[])
      IXMLDOMDocumentPtr dom(__uuidof(DOMDocument40));

change for 6 and try.

Here is a solution from Microsoft:;EN-US;269194

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual C++.NET

From novice to tech pro — start learning today.