DTD is prohibited in this XML document -- how to change permissions?

Posted by frankadelic on Stack Overflow See other posts from Stack Overflow or by frankadelic
Published on 2010-04-29T16:14:22Z Indexed on 2010/04/29 16:17 UTC
Read the original article Hit count: 1018

Filed under:
|
|
|
|

I am using a 3rd-party .NET component which requires an XML configuration file. I'm am using this in an ASP.NET application.

I get an error when configure the XML with the following dtd:

<!DOCTYPE prod-config SYSTEM "prod-config.dtd">

The error is as follows:

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.

prod-config.dtd is sitting in the same directory as the XML config file.

I don't have access to the component code to modify XmlReaderSettings, ProhibitDtd etc. Is there anotherway I can modify or tag the XML file to permit the DTD to be accessed?

(FYI, the component is Oracle Coherence .NET client)

© Stack Overflow or respective owner

Related posts about .NET

Related posts about Xml