简体   繁体   English

使用IXMLDOmDocument指针设置ProhibitDTD属性

[英]Setting ProhibitDTD property using IXMLDOmDocument pointer

I am using IXMLDomDocument pointer to load my XML. 我正在使用IXMLDomDocument指针来加载我的XML。 the load fails saying DTD is prohibited. 加载失败,表示禁止DTD。 Could not find a function to set ProhibitDTD property. 找不到设置ProhibitDTD属性的函数。

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 ? 如何将此属性设置为false

您必须使用IXMLDOMDocument2IXMLDOMDocument2Ptr

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM