Check the error information provided when
load()
fails:
if (loadXML->load(variant_t(_T("Style.xsl"))) == VARIANT_FALSE)
{
IXMLDOMParseErrorPtr errPtr = loadXML->GetparseError();
_bstr_t bstrErr(errPtr->reason);
printf("Error:\n");
printf("Code = 0x%x\n", errPtr->errorCode);
printf("Source = Line : %ld; Char : %ld\n", errPtr->line, errPtr->linepos);
printf("Error Description = %s\n", (char*)bstrErr);
return false;
}