You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2017/06/27 02:44:00 UTC

[jira] [Resolved] (XERCESC-2070) Ability to disable DTD processing

     [ https://issues.apache.org/jira/browse/XERCESC-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor resolved XERCESC-2070.
-----------------------------------
    Resolution: Fixed

r1800006

Support via XMLScanner and DOMLSParser classes to set the standard disallow-doctype property to true.

Evaluated the documentation and the other parser interfaces and concluded that without a standard to follow, the "Xerces way" to do this seems to have been to override the scanner class and use one of the DTD-ignoring versions. I wasn't aware of that when I originally added the environment workaround, but supporting the standard DOMLS property is more portable for applications to use.

> Ability to disable DTD processing
> ---------------------------------
>
>                 Key: XERCESC-2070
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2070
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Validating Parser (DTD)
>            Reporter: Scott Cantor
>            Assignee: Scott Cantor
>             Fix For: 3.2.0, 3.1.4
>
>
> We should provide a way for applications that don't need DTDs to be insulated from bugs in that code.
> Trunk could do this pretty easily with the same property URI that Xerces-J and Java use for this.
> To do it without an ABI change, I'm going to patch in an environment variable check. It's ugly, but this is a problem of such magnitude that I don't see any other option, particularly given the lack of resources devoted to the project.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org