1. Technology

Fix Loading XML / DTD in TXMLDocument - DTD Is Prohibited

By March 16, 2012

Follow me on:

in TXMLDocument :: Delphi 2010 (and Delphi XE) uses MSXML 6 as the default DomVendor for the TXMLDocument. DomVendor (property) specifies the DOM implementation to use for parsing and manipulating the XML document.

In MSXML 6, the ProhibitDTD property specifies whether to prohibit (true) or allow (false) the inclusion of a DTD in the XML document. Prior to version 6, the ProhibitDTD was set to false by default. With MSXML 6, ProhibitDTD is true by default.

If, when trying to load a XML, you receive "DTD is prohibited" read the full article to learn how to set ProhibitDTD to False


Comments are closed for this post.
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.