Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] How to use local DTD with XOM

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Michael Paus <mp AT jugs.org>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] How to use local DTD with XOM
  • Date: Tue, 27 May 2003 21:07:11 +0200

Hi,

I've got a first program working with XOM but I have a problem validating the
XML
file with a local DTD. The header of the XML file looks like this.

<?xml version="1.0"?>
<!DOCTYPE IPCTopology PUBLIC "-//IBP//IPC Topology//EN" "ipc_topology.dtd">

But I do not want the parser to load the DTD file from the net. Instead I
want it
to use a local one which is stored with the class files. I've tried already to
explicitly use a SAX parser where I have set an appropriate EntityResolver
which
worked fine for building a DOM tree but does not even seem to be called in
the case
of XOM.

Can anybody give me a hint of what is wrong?

Thank you

Michael

--
--------------------------------------------------------------------------------------
Dr. Michael Paus, Chairman of the Java User Group Stuttgart e.V. (JUGS)
and head of the JUGS Special Interest Group (SIG) "Embedded Java".
For more information visit http://www.jugs.de .






Archive powered by MHonArc 2.6.24.

Top of Page