Setting ProhibitDTD property using IXMLDOmDocument pointer

376 Views Asked by At

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?

1

There are 1 best solutions below

0
Konstantin On

You have to use either IXMLDOMDocument2 or IXMLDOMDocument2Ptr.