Skip to Content.
Sympa Menu

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

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

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


I've got a first program working with XOM but I have a problem validating the
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
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


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 .

Archive powered by MHonArc 2.6.24.

Top of Page