XMLNotepad provides the following text (for example) if the conversion fails:
XML conversion error A
variable or parameter "rich background-color" was duplicated with the same import precedence.
How can I get this error text programmatically? My code is as follows:
CComPtr<IXSLTemplate> tmpl;
HRESULT hr = CoCreateInstance(CLSID_XSLTemplate, NULL, CLSCTX_INPROC_SERVER, IID_IXSLTemplate, (void**)&tmpl);
if (SUCCEEDED(hr)) {
hr = tmpl->putref_stylesheet(xslt_doc);
if (SUCCEEDED(hr)) {
} else {
}
}
source
share