I am using IXMLDomDocument
pointer to load my XML. the load fails saying DTD is prohibited. Could not find a function to set ProhibitDTD
property.
example:
IXMLDOMDocument *pXMLDom = NULL;
CreateAndInitDOM(&pXMLDom);
{
//succeeds
}
pXMLDom->load(varFileName, &varStatus);
{
//fails: DTD is prohibited
}
I cannot find any function to set this property.
How can I set this property to false
?
您必须使用IXMLDOMDocument2
或IXMLDOMDocument2Ptr
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.