使用IXMLDOmDocument指针设置ProhibitDTD属性
Setting ProhibitDTD property using IXMLDOmDocument pointer
我使用IXMLDomDocument
指针来加载我的XML。加载失败,说明禁止使用DTD。无法找到设置ProhibitDTD
属性的函数。
的例子:
IXMLDOMDocument *pXMLDom = NULL;
CreateAndInitDOM(&pXMLDom);
{
//succeeds
}
pXMLDom->load(varFileName, &varStatus);
{
//fails: DTD is prohibited
}
我找不到任何函数来设置此属性。
如何将此属性设置为false
您必须使用IXMLDOMDocument2
或IXMLDOMDocument2Ptr
相关文章:
- 如何导出包含具有"std::unique_ptr"值的"std::map"属性的
- C++概念:如何使用'concept'检查模板化结构的属性?
- 子目录是否继承属性,例如add_definitions,include_directories和父Cmakelist.t
- 通过指向指针数组的指针访问子类的属性
- MSVC是否支持C++11样式的属性而不是__declspec
- QML:修改在不同QML文件(而非main.QML)中定义的子对象的属性
- 类的C++属性似乎已重新初始化
- Qt Quick-如何仅从c++代码与qml属性交互
- 用概念检查属性的类型
- C++如何将同一类的实例作为属性
- 按多个属性排序
- 主函数参数的属性
- "perf_event_attr"结构的"read_format"属性的选项到底是什么?
- C++删除未使用的类属性会导致 std::logic_error
- 无法使用 SWIG 在 Python 中实例化C++类(获取属性错误)
- 使用内存地址访问结构的属性值
- C++调用具有 *this 属性的单个帮助程序函数
- C++ 在堆栈中包含多态属性的类对象存储
- C++ 命名参数习惯用语 - 未设置字符串属性
- 使用IXMLDOmDocument指针设置ProhibitDTD属性