On NT workstation, I need to handle xml files with the doctype points to a
network driver, --
<!-- in source xml file -->
<!DOCTYPE PUB-ENTRY SYSTEM "\\box\folder\file1.dtd">
the file1.dtd itself, points to files over network --
<!-- in dtd file -->
<!ENTITY % HTMLspecial PUBLIC
"A PUBLIC ID" "//box/folder/file2.ent">
%HTMLspecial;
Both xerces parser and xalan transforming processor gave error " file:
<file:///\\box\folder\file1.dtd> <file://\\box\folder\file1.dtd>
\\box\folder\file1.dtd" not found, using -ENTITYRESOLVER with xalan process
or using setSystemID with parser did not help.
Even when using xml.parsers.SAXParserFactory.setValidating(false), the
parser still looks for the dtd file.
Thanks.
Ying
301-941-2953
-----Original Message-----
From: Voytenko, Dimitry [ <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 12:04 PM
To: '[EMAIL PROTECTED]'
Subject: RE: transforming, how to disable validation
Hi Ying,
Class javax.xml.parsers.SAXParserFactory has methods
setValidating/isValidating. They should do.
Thanks,
Dmitry
-----Original Message-----
From: Wu, Ying (LNG-CIS) [ <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 06:23
To: '[EMAIL PROTECTED]'
Subject: transforming, how to disable validation
I need to transform a xml file, which contains a doctype node:
<!DOCTYPE PUB-ENTRY SYSTEM "\\a.dtd">
The transforming process will first validate the input file.
Is there any xalan API to tell the Process do not validate, just transform?
Both command line and java code are OK, I just don't want to get into the
parser level.
Thanks,
Ying Wu
301-941-2953