I get some more compiler errors as follows even after including msxml2.h in the stdafx.h.
--------------------Configuration: xmlparser - Win32 Debug--------------------
Compiling...
XmlParserDlg.cpp
e:\xml\xmlparser\xmlparserdlg.cpp(96) : error C2065: 'CLSID_DOMDocument2' : undeclared identifier
e:\xml\xmlparser\xmlparserdlg.cpp(96) : error C2065: 'IID_IXMLDOMDocument' : undeclared identifier
e:\xml\xmlparser\xmlparserdlg.cpp(101) : error C2027: use of undefined type 'IXMLDOMDocument'
c:\program files\microsoft xml parser sdk\inc\msxml2.h(56) : see declaration of 'IXMLDOMDocument'
e:\xml\xmlparser\xmlparserdlg.cpp(101) : error C2227: left of '->put_async' must point to class/struct/union
e:\xml\xmlparser\xmlparserdlg.cpp(105) : error C2027: use of undefined type 'IXMLDOMDocument'
c:\program files\microsoft xml parser sdk\inc\msxml2.h(56) : see declaration of 'IXMLDOMDocument'
e:\xml\xmlparser\xmlparserdlg.cpp(105) : error C2227: left of '->load' must point to class/struct/union
e:\xml\xmlparser\xmlparserdlg.cpp(110) : error C2027: use of undefined type 'IXMLDOMDocument'