You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by "Jacinto, Alex" <Al...@dowjones.com> on 2006/12/20 16:00:32 UTC

External DTD

Hello,

I am trying to avoid the loading of external DTD.  According to the FAQ,
I only need to:
1.  Set my validation scheme to never
2.  Set load external DTD to false

parser->setValidationScheme (XercesDOMParser::Val_Never);
parser->setLoadExternalDTD (false);

However, my parser still spit out an XMLPlatformException, a fatal error
with message:  "Could not close the file"

I'm using 2.7 and here is a sample of xml file:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE NewsML SYSTEM "../DTD/NewsMLv1.0.dtd" [<!ENTITY %
NskBasicText.dtd SYSTEM "../DTD/NskBasicText.dtd">  %NskBasicText.dtd;]>
<NewsML>
...
</NewsML>


I do not have the mentioned DTD files in my local computer.

Thanks in advance and happy holidays.


Alex