The DTD is always loaded if a doctype is provided. The parser need it for
resolving entities and this is standard xml behaviour.
Install a entity resolver and return a dummy DTD for the file
/ids/oris+/crs/CRSMain.dtd. I dont think you even need to define the root
element because you do not use validation. But this I'm not sure of.
Regards
Erik Rydgren
Mandarinen systems AB
Sweden
-----Original Message-----
From: Adib Taraben [mailto:[EMAIL PROTECTED]]
Sent: den 3 september 2001 11:58
To: [EMAIL PROTECTED]
Subject: validation in Xerces
Hello,
I got an problem non validating an xml file.
I have an XML-file with DTD:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE SLC_2002_Sports PUBLIC "-//Ids//oris+//crs//CRS.dtd "
"ids/oris+/crs/CRSMain.dtd">
<SLC_2002_Sports RSC="SB0000000" Type="X02">
bla bla
</SLC_2002_Sports>
Running the parser I set ValScheme to DOMParser::Val_Never. But I get an
unspecified exception until I remove this DTD-line from the file.
I think the parser tries to load that files but fails with exception.
Is there any sense for that? Any solution?
I use Xerces 1.5.1 on Win32 compiled by BCB5
Thanks in advance,
Adib.
--
Adib Taraben [EMAIL PROTECTED]
WIGE MIC Tel: +49 (0)341-4621/100
Wiesenring 11 Fax: +49 (0)341-4621/400
04159 LEIPZIG mail: [EMAIL PROTECTED]
GERMANY WWW: www.wige-mic.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]