Try this.


MSXML2::IXMLDOMDocument2Ptr spDoc;
spDoc.CreateInstance(__uuidof(MSXML2:OMDocument40));

CComVariant varPath(L"D:\\example.xml");
if(VARIANT_FALSE == spDoc->load(varPath))
{
ATLTRACE(_T("Load Document Failed!\n"));
}





qingqi song