[jdom-interest] How do specify a DTD?
Kenneth Ellefsen
kellefsen at bergen.oilfield.slb.com
Fri Nov 15 08:33:42 PST 2002
Hi.
If you have a xml file with a DOCTYPE tag specifying a dtd file, is it
an absolute requirement that the dtd file must be in the same directory
as the xml file?
Or is it possible at run time to tell the builder where the dtd file is
located?
I tryed the following:
FileInputStream file = new FileInputStream(m_filename);
m_doc = builder.build( file, "/path/to/dtdfile/file.dtd")
But is still fails with an Exception saying:
External entity not found: "/path/to/dtdfile/file.dtd"
Tips appreciated.
--
Mvh,
Kenneth Ellefsen | Tlf: (+47) 55985829
Schlumberger Information Solutions | www.sis.slb.com
More information about the jdom-interest
mailing list